mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-02-25 21:47:52 +00:00
Fix test
This commit is contained in:
parent
2fc15cf322
commit
abe491f5cd
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user