diff --git a/lib/core/auth/src/authentication-interceptor/authentication.interceptor.spec.ts b/lib/core/auth/src/authentication-interceptor/authentication.interceptor.spec.ts index c1cdb5f815..81d90506b1 100644 --- a/lib/core/auth/src/authentication-interceptor/authentication.interceptor.spec.ts +++ b/lib/core/auth/src/authentication-interceptor/authentication.interceptor.spec.ts @@ -48,6 +48,7 @@ describe('AuthenticationInterceptor', () => { }); it('should call add auth token method when SHOULD_ADD_AUTH_TOKEN context is set to true', () => { + addTokenToHeaderSpy.and.callThrough(); request.context.set(SHOULD_ADD_AUTH_TOKEN, true); interceptor.intercept(request, mockNext); expect(addTokenToHeaderSpy).toHaveBeenCalled(); diff --git a/lib/core/shell/src/lib/components/shell/shell.component.spec.ts b/lib/core/shell/src/lib/components/shell/shell.component.spec.ts index dd0ccca55a..a09e197510 100644 --- a/lib/core/shell/src/lib/components/shell/shell.component.spec.ts +++ b/lib/core/shell/src/lib/components/shell/shell.component.spec.ts @@ -26,6 +26,7 @@ import { CommonModule } from '@angular/common'; import { ShellAppService, SHELL_APP_SERVICE } from '../../services/shell-app.service'; import { HttpClientModule } from '@angular/common/http'; import { NoopAnimationsModule } from '@angular/platform-browser/animations'; +import { TranslateModule } from '@ngx-translate/core'; class MockRouter { private url = 'some-url'; @@ -57,7 +58,15 @@ describe('AppLayoutComponent', () => { }; TestBed.configureTestingModule({ - imports: [CommonModule, NoopAnimationsModule, HttpClientModule, SidenavLayoutModule, ExtensionsModule, RouterModule.forChild([])], + imports: [ + CommonModule, + NoopAnimationsModule, + HttpClientModule, + SidenavLayoutModule, + ExtensionsModule, + RouterModule.forChild([]), + TranslateModule.forRoot() + ], providers: [ { provide: Router,