2017-11-23 13:18:23 +01:00
|
|
|
import { TestBed, inject } from '@angular/core/testing';
|
|
|
|
|
|
|
|
import { SnapshotService } from './snapshot.service';
|
2018-01-18 12:39:36 +01:00
|
|
|
import { HttpServer } from './http-server.service';
|
|
|
|
|
|
|
|
class MockedHttpServer {
|
|
|
|
post(server: any, url: string, data: any) {}
|
|
|
|
|
|
|
|
get(server: any, url: string, data: any) {}
|
|
|
|
}
|
2017-11-23 13:18:23 +01:00
|
|
|
|
|
|
|
describe('SnapshotService', () => {
|
|
|
|
beforeEach(() => {
|
|
|
|
TestBed.configureTestingModule({
|
2018-01-18 12:39:36 +01:00
|
|
|
providers: [
|
|
|
|
SnapshotService,
|
|
|
|
{provide: HttpServer, useClass: MockedHttpServer}
|
|
|
|
],
|
|
|
|
|
2017-11-23 13:18:23 +01:00
|
|
|
});
|
|
|
|
});
|
|
|
|
|
2018-01-18 12:39:36 +01:00
|
|
|
it('should be created', inject([SnapshotService], (service: SnapshotService) => {
|
|
|
|
expect(service).toBeTruthy();
|
|
|
|
}));
|
2017-11-23 13:18:23 +01:00
|
|
|
});
|