This commit is contained in:
Steve Faulkner 2020-08-06 14:34:30 -05:00
parent 2fc15cf322
commit abe491f5cd

View File

@ -1,6 +1,13 @@
import { armRequest } from "./request"; import { armRequest } from "./request";
import { updateUserContext } from "../../UserContext";
describe("ARM request", () => { describe("ARM request", () => {
beforeAll(() => {
updateUserContext({
authorizationToken: "foo"
});
});
it("should call window.fetch", async () => { it("should call window.fetch", async () => {
window.fetch = jest.fn().mockResolvedValue({ window.fetch = jest.fn().mockResolvedValue({
ok: true, ok: true,