Skip to content

Commit 328104a

Browse files
committed
Fix failed tests
1 parent 09e5016 commit 328104a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

lib/msal-browser/test/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.spec.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,13 @@ import {
2121
createJitCompletedResult,
2222
} from "../../../../../../src/custom_auth/core/interaction_client/jit/result/JitActionResult.js";
2323
import { AuthenticationMethod } from "../../../../../../src/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.js";
24+
import { getDefaultLogger } from "../../../../test_resources/TestModules.js";
2425

2526
describe("JitState", () => {
2627
let mockJitClient: jest.Mocked<JitClient>;
2728
let mockCacheClient: jest.Mocked<CustomAuthSilentCacheClient>;
2829
let mockConfig: CustomAuthBrowserConfiguration;
29-
let mockLogger: jest.Mocked<Logger>;
30+
let mockLogger: Logger;
3031
let correlationId: string;
3132

3233
const mockAuthMethod: AuthenticationMethod = {
@@ -52,10 +53,7 @@ describe("JitState", () => {
5253
},
5354
} as any;
5455

55-
mockLogger = {
56-
verbose: jest.fn(),
57-
error: jest.fn(),
58-
} as any;
56+
mockLogger = getDefaultLogger();
5957
});
6058

6159
describe("AuthMethodRegistrationRequiredState", () => {

0 commit comments

Comments
 (0)