Skip to content
Snippets Groups Projects
Commit ef5b19bc authored by Florent Poittevin's avatar Florent Poittevin
Browse files

fix: unit test with dependancy on overlay module

parent e06dfd92
No related branches found
No related tags found
No related merge requests found
import {OverlayModule} from "@angular/cdk/overlay";
import {HttpClientTestingModule} from "@angular/common/http/testing";
import {TestBed} from "@angular/core/testing";
import {MatSnackBar} from "@angular/material/snack-bar";
......@@ -37,7 +38,7 @@ describe("ApplicationRoleGuardService", () => {
beforeEach(() => {
TestBed.configureTestingModule({
imports: [HttpClientTestingModule, NgxsModule.forRoot([AppState, AppUserState, AppPersonState])],
imports: [HttpClientTestingModule, NgxsModule.forRoot([AppState, AppUserState, AppPersonState]), OverlayModule],
providers: [
{
provide: ApplicationRoleGuardService,
......
import {OverlayModule} from "@angular/cdk/overlay";
import {HttpClientTestingModule} from "@angular/common/http/testing";
import {TestBed} from "@angular/core/testing";
import {MatSnackBar} from "@angular/material";
......@@ -29,7 +30,7 @@ describe("AuthGuardService", () => {
beforeEach(() => {
TestBed.configureTestingModule({
imports: [HttpClientTestingModule, NgxsModule.forRoot([AppState, AppPersonState, AppUserState])],
imports: [HttpClientTestingModule, NgxsModule.forRoot([AppState, AppPersonState, AppUserState]), OverlayModule],
providers: [
{
provide: AuthGuardService,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment