Skip to content

Commit

Permalink
test: fix the version reporting string test
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinCupela committed Nov 21, 2024
1 parent adea2a8 commit 572add1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/Chat/__tests__/Chat.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ import {
getTestClientWithUser,
} from '../../../mock-builders';

import { version } from '../../../../package.json';

const ChatContextConsumer = ({ fn }) => {
fn(useContext(ChatContext));
return <div data-testid='children' />;
Expand Down Expand Up @@ -66,7 +64,7 @@ describe('Chat', () => {
expect(context.openMobileNav).toBeInstanceOf(Function);
expect(context.closeMobileNav).toBeInstanceOf(Function);
expect(context.client.getUserAgent()).toBe(
`stream-chat-react-${version}-${originalUserAgent}`,
`stream-chat-react-__STREAM_CHAT_REACT_VERSION__-${originalUserAgent}`,
);
});
});
Expand Down

0 comments on commit 572add1

Please sign in to comment.