Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
popestr committed Sep 30, 2024
1 parent 62689ff commit 4696f37
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/chat-core-zendesk/tests/ChatCoreZendesk.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jest.mock("smooch", () => ({
on: jest.fn(),
startTyping: jest.fn(),
stopTyping: jest.fn(),
off: jest.fn(),
}));

beforeEach(() => {
Expand Down Expand Up @@ -62,7 +63,7 @@ describe("chat session initialization", () => {
const chatCoreZendesk = provideChatCoreZendesk(mockConfig);
await expect(
chatCoreZendesk.init(mockMessageResponse())
).resolves.toBe("mock-conversation-id");
).resolves.toStrictEqual({conversationId: "mock-conversation-id"});
});

it("avoid rendering smooch web widget on subsequent initialization", async () => {
Expand Down

0 comments on commit 4696f37

Please sign in to comment.