July 2018
Intermediate to advanced
420 pages
8h 46m
English
Open ./Client/src/app/shared/_services/app-http-interceptor.service.spec.ts and replace the contents with the following code:
import { HttpClientModule } from '@angular/common/http'; import { TestBed, inject } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; // App imports import { AppHttpInterceptorService } from './app-http-interceptor.service'; describe('AppHttpInterceptorService', () => { beforeEach(() => { TestBed.configureTestingModule({ imports: [ RouterTestingModule, HttpClientModule ], providers: [AppHttpInterceptorService] }); }); it('should be created', inject([AppHttpInterceptorService], (service: AppHttpInterceptorService) => { expect(service).toBeTruthy(); ...Read now
Unlock full access