From 836cd29d9ca51ac7aba631f5c3ee04e757596b20 Mon Sep 17 00:00:00 2001 From: Jasper Herzberg Date: Tue, 20 Feb 2024 07:22:39 +0100 Subject: [PATCH] test: use modal service mock --- .../dashboard/src/lib/dashboard/dashboard.component.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/spa/dashboard/src/lib/dashboard/dashboard.component.spec.ts b/libs/spa/dashboard/src/lib/dashboard/dashboard.component.spec.ts index f113dc969..3d2a1c54a 100644 --- a/libs/spa/dashboard/src/lib/dashboard/dashboard.component.spec.ts +++ b/libs/spa/dashboard/src/lib/dashboard/dashboard.component.spec.ts @@ -20,10 +20,10 @@ describe('DashboardComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ - imports: [BrowserAnimationsModule, DashboardComponent], + imports: [BrowserAnimationsModule], providers: [ { provide: AUTH_SERVICE, useValue: authServiceMock }, - { provide: NzModalService, useValue: { create: jest.fn() } }, + { provide: NzModalService, useValue: modalServiceMock }, ], }).compileComponents(); });