mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-01-01 15:22:08 +00:00
Remove window.authType (#437)
This commit is contained in:
@@ -9,8 +9,8 @@ jest.mock("../Explorer/Explorer");
|
||||
describe("AuthorizationUtils", () => {
|
||||
describe("getAuthorizationHeader()", () => {
|
||||
it("should return authorization header if authentication type is AAD", () => {
|
||||
window.authType = AuthType.AAD;
|
||||
updateUserContext({
|
||||
authType: AuthType.AAD,
|
||||
authorizationToken: "some-token",
|
||||
});
|
||||
|
||||
@@ -19,8 +19,8 @@ describe("AuthorizationUtils", () => {
|
||||
});
|
||||
|
||||
it("should return guest access header if authentication type is EncryptedToken", () => {
|
||||
window.authType = AuthType.EncryptedToken;
|
||||
updateUserContext({
|
||||
authType: AuthType.EncryptedToken,
|
||||
accessToken: "some-token",
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user