Skip to content

Commit 679f21d

Browse files
modified frontend unit test case (Answer.test.tsx)
1 parent 13f913b commit 679f21d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

code/frontend/src/components/Answer/Answer.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { conversationResponseWithCitations } from "../../../__mocks__/SampleData
1313
jest.mock('microsoft-cognitiveservices-speech-sdk', () => {
1414
return {
1515
SpeechConfig: {
16-
fromSubscription: jest.fn(),
16+
fromAuthorizationToken: jest.fn(),
1717
},
1818
AudioConfig: {
1919
fromDefaultSpeakerOutput: jest.fn(),
@@ -51,7 +51,7 @@ const speechMockData = {
5151
jest.mock("microsoft-cognitiveservices-speech-sdk", () => {
5252
return {
5353
SpeechConfig: {
54-
fromSubscription: jest.fn(),
54+
fromAuthorizationToken: jest.fn(),
5555
fromSpeakerOutput: jest.fn().mockReturnValue({}),
5656
},
5757
AudioConfig: {

0 commit comments

Comments
 (0)