From 637e7dddb5e26c0bae5d46687aff1d91532c0463 Mon Sep 17 00:00:00 2001 From: Stevan Freeborn <65925598+StevanFreeborn@users.noreply.github.com> Date: Wed, 8 Feb 2023 17:11:35 -0600 Subject: [PATCH] fix: remove mocha arrow functions --- .../test/internal/roomsClient.mocked.spec.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sdk/communication/communication-rooms/test/internal/roomsClient.mocked.spec.ts b/sdk/communication/communication-rooms/test/internal/roomsClient.mocked.spec.ts index f8e2c81af06a..81dd1e4eb66b 100644 --- a/sdk/communication/communication-rooms/test/internal/roomsClient.mocked.spec.ts +++ b/sdk/communication/communication-rooms/test/internal/roomsClient.mocked.spec.ts @@ -12,14 +12,14 @@ import { mockUpdateRoomsResult, } from "./utils/mockedClient"; -describe("[Mocked] RoomsClient", async () => { +describe("[Mocked] RoomsClient", async function () { let roomsClient: RoomsClient; - afterEach(() => { + afterEach(function () { sinon.restore(); }); - it("makes successful create Rooms request", async () => { + it("makes successful create Rooms request", async function () { const mockHttpClient = generateHttpClient(201, mockCreateRoomsResult); roomsClient = createRoomsClient(mockHttpClient); @@ -42,7 +42,7 @@ describe("[Mocked] RoomsClient", async () => { assert.isNotEmpty(request.headers.get("repeatability-request-id")); }); - it("makes update Rooms request", async () => { + it("makes update Rooms request", async function () { const mockHttpClient = generateHttpClient(200, mockUpdateRoomsResult); roomsClient = createRoomsClient(mockHttpClient); const spy = sinon.spy(mockHttpClient, "sendRequest"); @@ -65,7 +65,7 @@ describe("[Mocked] RoomsClient", async () => { assert.deepEqual(request.body as string, JSON.stringify(sendOptions)); }); - it("makes add Participant request", async () => { + it("makes add Participant request", async function () { const mockHttpClient = generateHttpClient(200, mockUpdateRoomsResult); roomsClient = createRoomsClient(mockHttpClient); const spy = sinon.spy(mockHttpClient, "sendRequest");