/* tslint:disable:no-unused-variable */ import { TestBed, async, inject } from '@angular/core/testing'; import { LoadingFailedService } from './loading-failed.service'; import { Subject } from 'rxjs/Subject'; describe('LoadingFailedService', () => { beforeEach(() => { TestBed.configureTestingModule({ providers: [LoadingFailedService] }); }); it('should have a loading, failed and data observable after setup', inject([LoadingFailedService], (service: LoadingFailedService) => { expect(service).toBeTruthy(); service.setup(new Subject(), () => Promise.resolve('hello')); expect(service.loading$).not.toBeNull(); expect(service.failed$).not.toBeNull(); expect(service.data$).not.toBeNull(); })); });