Add one test to make it green

This commit is contained in:
ziajka 2018-01-18 12:39:36 +01:00
parent f9f4f8560b
commit 48604fcc95

View File

@ -1,15 +1,26 @@
import { TestBed, inject } from '@angular/core/testing';
import { SnapshotService } from './snapshot.service';
import { HttpServer } from './http-server.service';
class MockedHttpServer {
post(server: any, url: string, data: any) {}
get(server: any, url: string, data: any) {}
}
describe('SnapshotService', () => {
beforeEach(() => {
TestBed.configureTestingModule({
providers: [SnapshotService]
providers: [
SnapshotService,
{provide: HttpServer, useClass: MockedHttpServer}
],
});
});
// it('should be created', inject([SnapshotService], (service: SnapshotService) => {
// expect(service).toBeTruthy();
// }));
it('should be created', inject([SnapshotService], (service: SnapshotService) => {
expect(service).toBeTruthy();
}));
});