mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-01-31 08:25:35 +00:00
Add one test to make it green
This commit is contained in:
parent
f9f4f8560b
commit
48604fcc95
@ -1,15 +1,26 @@
|
|||||||
import { TestBed, inject } from '@angular/core/testing';
|
import { TestBed, inject } from '@angular/core/testing';
|
||||||
|
|
||||||
import { SnapshotService } from './snapshot.service';
|
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', () => {
|
describe('SnapshotService', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
TestBed.configureTestingModule({
|
TestBed.configureTestingModule({
|
||||||
providers: [SnapshotService]
|
providers: [
|
||||||
|
SnapshotService,
|
||||||
|
{provide: HttpServer, useClass: MockedHttpServer}
|
||||||
|
],
|
||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// it('should be created', inject([SnapshotService], (service: SnapshotService) => {
|
it('should be created', inject([SnapshotService], (service: SnapshotService) => {
|
||||||
// expect(service).toBeTruthy();
|
expect(service).toBeTruthy();
|
||||||
// }));
|
}));
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user