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