mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-01-18 10:46: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 { 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();
|
||||
}));
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user