Fixing SO-Monitoring UI tests
[so.git] / so-monitoring / so-monitoring-ui / src / main / frontend / src / app / toastr-notification-service.service.spec.ts
index 062cc90..cb685c9 100644 (file)
@@ -24,14 +24,20 @@ import { TestBed, inject } from '@angular/core/testing';
 \r
 import { ToastrNotificationService } from './toastr-notification-service.service';\r
 \r
+class StubbedToastrNotificationService extends ToastrNotificationService {\r
+  toastrSettings() {\r
+  }\r
+}\r
+\r
 describe('ToasterNotificationService', () => {\r
   beforeEach(() => {\r
     TestBed.configureTestingModule({\r
-      providers: [ToastrNotificationService]\r
+      providers: [ToastrNotificationService,\r
+        { provide: ToastrNotificationService, useClass: StubbedToastrNotificationService }]\r
     });\r
   });\r
 \r
-  it('should be created', inject([ToastrNotificationService], (service: ToastrNotificationService) => {\r
+  it('component should be created', inject([ToastrNotificationService], (service: ToastrNotificationService) => {\r
     expect(service).toBeTruthy();\r
   }));\r
 });\r