Uplift to Angular 9
[portal/nonrtric-controlpanel.git] / webapp-frontend / src / app / services / ui / notification.service.spec.ts
index 61110c9..f522b11 100644 (file)
 import { TestBed } from '@angular/core/testing';
 
 import { NotificationService } from './notification.service';
+import { ToastrModule } from 'ngx-toastr';
 
 describe('NotificationService', () => {
-  beforeEach(() => TestBed.configureTestingModule({}));
+  beforeEach(() => TestBed.configureTestingModule({
+    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();
   });
 });