mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2024-11-25 06:56:38 +00:00
Remove unused describe section
This commit is contained in:
parent
9c8baca8cd
commit
2a8f1a3be0
@ -1,34 +1,6 @@
|
|||||||
import { ResourceType } from "@azure/cosmos";
|
|
||||||
import { Platform, resetConfigContext, updateConfigContext } from "../ConfigContext";
|
import { Platform, resetConfigContext, updateConfigContext } from "../ConfigContext";
|
||||||
import { updateUserContext } from "../UserContext";
|
import { updateUserContext } from "../UserContext";
|
||||||
import { endpoint, getTokenFromAuthService, requestPlugin, tokenProvider } from "./CosmosClient";
|
import { endpoint, getTokenFromAuthService, requestPlugin } from "./CosmosClient";
|
||||||
|
|
||||||
describe("tokenProvider", () => {
|
|
||||||
const options = {
|
|
||||||
verb: "GET" as any,
|
|
||||||
path: "/",
|
|
||||||
resourceId: "",
|
|
||||||
resourceType: "dbs" as ResourceType,
|
|
||||||
headers: {},
|
|
||||||
getAuthorizationTokenUsingMasterKey: () => "",
|
|
||||||
};
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
updateConfigContext({
|
|
||||||
BACKEND_ENDPOINT: "https://main.documentdb.ext.azure.com",
|
|
||||||
});
|
|
||||||
window.fetch = jest.fn().mockImplementation(() => {
|
|
||||||
return {
|
|
||||||
json: () => "{}",
|
|
||||||
headers: new Map(),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
afterEach(() => {
|
|
||||||
jest.restoreAllMocks();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
describe("getTokenFromAuthService", () => {
|
describe("getTokenFromAuthService", () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user