\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