don't check punctuation in service return
This commit is contained in:
Родитель
d201c5833e
Коммит
b1aef193d4
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче