diff --git a/tests/SpeechRecognizerTests.ts b/tests/SpeechRecognizerTests.ts index 934db65..2177e95 100644 --- a/tests/SpeechRecognizerTests.ts +++ b/tests/SpeechRecognizerTests.ts @@ -2270,7 +2270,7 @@ describe("PhraseList tests", () => { 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(); } catch (error) { done(error); @@ -2307,7 +2307,7 @@ describe("PhraseList tests", () => { 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(); } catch (error) { done(error); @@ -2426,7 +2426,7 @@ describe("PhraseList tests", () => { if (phraseAdded) { 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"); } gotReco = true; recoCount++; diff --git a/tests/packaging/package-lock.json b/tests/packaging/package-lock.json index 68775dc..4844079 100644 --- a/tests/packaging/package-lock.json +++ b/tests/packaging/package-lock.json @@ -2509,9 +2509,9 @@ "dev": true }, "loader-utils": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.4.0.tgz", - "integrity": "sha512-qH0WSMBtn/oHuwjy/NucEgbx5dbxxnxup9s4PVXJUDHZBQY+s0NWA9rJf53RBnQZxfch7euUui7hpoAPvALZdA==", + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.4.1.tgz", + "integrity": "sha512-1Qo97Y2oKaU+Ro2xnDMR26g1BwMT29jNbem1EvcujW2jqt+j5COXyscjM7bLQkM9HaxI7pkWeW7gnI072yMI9Q==", "dev": true, "requires": { "big.js": "^5.2.2",