don't check punctuation in service return

This commit is contained in:
Glenn Harper 2022-10-04 20:08:49 -04:00
Родитель d201c5833e
Коммит b1aef193d4
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -999,7 +999,7 @@ test("Ambiguous Speech default as expected", (done: jest.DoneCallback) => {
expect(res.errorDetails).toBeUndefined();
expect(res.reason).toEqual(sdk.ResultReason.RecognizedSpeech);
expect(res).not.toBeUndefined();
expect(res.text).toEqual("Recognize speech.");
expect(res.text.replace(/[^\w\s\']|_/g, "")).toEqual("Recognize speech");
done();
},
(error: string) => {
@ -1078,9 +1078,9 @@ test("Phraselist Clear works.", (done: jest.DoneCallback) => {
expect(res).not.toBeUndefined();
expect(sdk.ResultReason[res.reason]).toEqual(sdk.ResultReason[sdk.ResultReason.RecognizedSpeech]);
if (phraseAdded) {
expect(res.text).toContain("Wreck a nice beach.");
expect(res.text).toContain("Wreck a nice beach");
} else {
expect(res.text).toEqual("Recognize speech.");
expect(res.text.replace(/[^\w\s\']|_/g, "")).toEqual("Recognize speech");
}
recoCount++;
} catch (error) {