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