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