describe('NotificationService', () => {
beforeEach(() => TestBed.configureTestingModule({
- imports: [ToastrModule.forRoot()],
+ imports: [ToastrModule.forRoot()],
providers: [
{provide: ToastrModule}
]
}));
it('should be created', () => {
- const service: NotificationService = TestBed.get(NotificationService);
+ const service: NotificationService = TestBed.inject(NotificationService);
expect(service).toBeTruthy();
});
});