Skip to content

Commit

Permalink
test: use modal service mock
Browse files Browse the repository at this point in the history
  • Loading branch information
JSPRH committed Feb 20, 2024
1 parent aa5d722 commit 836cd29
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Expand Down

0 comments on commit 836cd29

Please sign in to comment.