Commit 859af4d5 authored by David Burke's avatar David Burke

Fix tests

parent c7880df9
Pipeline #63382886 passed with stage
in 7 minutes and 19 seconds
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -74,7 +74,8 @@ describe("Change Password Component", () => {
publicKey: "",
rememberMe: false,
userId: 1,
userToken: ""
userToken: "",
mfaRequired: false
})
);
fixture.detectChanges();
......
......@@ -3,6 +3,7 @@ import {
HttpClientTestingModule,
HttpTestingController
} from "@angular/common/http/testing";
import { RouterTestingModule } from "@angular/router/testing";
import { AuthInterceptor } from "./auth.interceptor";
import { HTTP_INTERCEPTORS, HttpClient } from "@angular/common/http";
import { StoreModule, Store } from "@ngrx/store";
......@@ -21,7 +22,8 @@ describe(`AuthHttpInterceptor`, () => {
imports: [
HttpClientTestingModule,
StoreModule.forRoot({}),
StoreModule.forFeature("account", reducers)
StoreModule.forFeature("account", reducers),
RouterTestingModule.withRoutes([])
],
providers: [
{
......
......@@ -42,7 +42,8 @@ describe("AccountReducer", () => {
userId: 1,
userToken: "aaa",
rememberMe: false,
optInErrorReporting: false
optInErrorReporting: false,
mfaRequired: false
};
const createAction = new LoginSuccessAction(user);
......@@ -55,7 +56,8 @@ describe("AccountReducer", () => {
url: fromAuth.initialState.url,
rememberMe: false,
optInErrorReporting: false,
forceSetPassword: false
forceSetPassword: false,
mfaRequired: false
};
const result = fromAuth.authReducer(fromAuth.initialState, createAction);
......@@ -92,7 +94,8 @@ describe("AccountReducer", () => {
userId: 1,
userToken: "aaa",
rememberMe: false,
optInErrorReporting: false
optInErrorReporting: false,
mfaRequired: false
};
store.dispatch(new LoginSuccessAction(user));
isLoggedInSelector
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment