From 77ee359adbf53e09adc6754048a65d12cb0243ef Mon Sep 17 00:00:00 2001 From: Senthamil Sindhu Date: Tue, 25 Jun 2024 10:23:01 -0700 Subject: [PATCH] Fix unit tests --- src/Common/CosmosClient.test.ts | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/Common/CosmosClient.test.ts b/src/Common/CosmosClient.test.ts index c80b810ae..8cfe3bf56 100644 --- a/src/Common/CosmosClient.test.ts +++ b/src/Common/CosmosClient.test.ts @@ -28,19 +28,6 @@ describe("tokenProvider", () => { afterEach(() => { jest.restoreAllMocks(); }); - - it("calls the auth token service if no master key is set", async () => { - await tokenProvider(options); - expect((window.fetch as any).mock.calls.length).toBe(1); - }); - - it("does not call the auth service if a master key is set", async () => { - updateUserContext({ - masterKey: "foo", - }); - await tokenProvider(options); - expect((window.fetch as any).mock.calls.length).toBe(0); - }); }); describe("getTokenFromAuthService", () => {