diff --git a/src/Utils/arm/request.test.ts b/src/Utils/arm/request.test.ts index e0ba3120d..739abb340 100644 --- a/src/Utils/arm/request.test.ts +++ b/src/Utils/arm/request.test.ts @@ -1,6 +1,13 @@ import { armRequest } from "./request"; +import { updateUserContext } from "../../UserContext"; describe("ARM request", () => { + beforeAll(() => { + updateUserContext({ + authorizationToken: "foo" + }); + }); + it("should call window.fetch", async () => { window.fetch = jest.fn().mockResolvedValue({ ok: true,