diff --git a/sdk/communication/communication-job-router/test/internal/routerClient.mocked.spec.ts b/sdk/communication/communication-job-router/test/internal/routerClient.mocked.spec.ts index 5ab2046be45c..d97a602252e1 100644 --- a/sdk/communication/communication-job-router/test/internal/routerClient.mocked.spec.ts +++ b/sdk/communication/communication-job-router/test/internal/routerClient.mocked.spec.ts @@ -6,12 +6,12 @@ import { AzureCommunicationTokenCredential } from "@azure/communication-common"; import { RouterClient } from "../../src"; import { baseUri, generateToken } from "../public/utils/connectionUtils"; -describe("[Mocked] RouterClient", async () => { - afterEach(() => { +describe("[Mocked] RouterClient", async function () { + afterEach(function () { sinon.restore(); }); - it("can instantiate", async () => { + it("can instantiate", async function () { new RouterClient(baseUri, new AzureCommunicationTokenCredential(generateToken())); }); });