Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
abeatrix committed Jan 3, 2025
1 parent eb73c68 commit d32bc06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vscode/src/chat/chat-view/ChatController.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ describe('ChatController', () => {
await vi.runOnlyPendingTimersAsync()
expect(mockChatClient.chat).toBeCalledTimes(1)
expect(addBotMessageSpy).toHaveBeenCalledWith('1', ps`Test reply 1`, 'my-model')
expect(postMessageSpy.mock.calls.at(5)?.at(0)).toStrictEqual<
expect(postMessageSpy.mock.calls.at(6)?.at(0)).toStrictEqual<
Extract<ExtensionMessage, { type: 'transcript' }>
>({
type: 'transcript',
Expand Down Expand Up @@ -382,7 +382,7 @@ describe('ChatController', () => {
await vi.runOnlyPendingTimersAsync()
expect(mockChatClient.chat).toBeCalledTimes(1)
expect(addBotMessageSpy).toHaveBeenCalledWith('1', ps`Test partial reply`, 'my-model')
expect(postMessageSpy.mock.calls.at(8)?.at(0)).toStrictEqual<
expect(postMessageSpy.mock.calls.at(9)?.at(0)).toStrictEqual<
Extract<ExtensionMessage, { type: 'transcript' }>
>({
type: 'transcript',
Expand Down

0 comments on commit d32bc06

Please sign in to comment.