Skip to content

Commit

Permalink
tiny fix
Browse files Browse the repository at this point in the history
  • Loading branch information
popestr committed Jul 9, 2024
1 parent fce78e5 commit 033286f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/chat-headless/tests/chatheadless.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@ const mockedMetaState: MetaState = {

beforeEach(() => {
jest.spyOn(coreLib, "provideChatCore").mockImplementation(() => {
return {
const client: ChatHttpClient = {
getNextMessage: jest.fn(),
on: jest.fn(),
} as Partial<ChatHttpClient> as ChatHttpClient;
streamNextMessage: jest.fn(),
};
return client;
});
localStorage.clear();
});
Expand Down

0 comments on commit 033286f

Please sign in to comment.