gns3-web-ui/src/app/shared/services/snapshot.service.spec.ts

27 lines
637 B
TypeScript
Raw Normal View History

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
});