GUI2 added in the layout topo overlay
Change-Id: I9960f95ae726a5af9950771ed67bcfc9d172e267
diff --git a/web/gui2-topo-lib/projects/gui2-topo-lib/src/lib/layer/forcesvg/models/force-directed-graph.spec.ts b/web/gui2-topo-lib/projects/gui2-topo-lib/src/lib/layer/forcesvg/models/force-directed-graph.spec.ts
index bdcd5c5..90c12e1 100644
--- a/web/gui2-topo-lib/projects/gui2-topo-lib/src/lib/layer/forcesvg/models/force-directed-graph.spec.ts
+++ b/web/gui2-topo-lib/projects/gui2-topo-lib/src/lib/layer/forcesvg/models/force-directed-graph.spec.ts
@@ -55,8 +55,7 @@
}
fdg.nodes = nodes;
fdg.links = links;
- fdg.initSimulation(options);
- fdg.initNodes();
+ fdg.reinitSimulation();
logServiceSpy = TestBed.get(LogService);
});
@@ -64,7 +63,7 @@
fdg.stopSimulation();
fdg.nodes = [];
fdg.links = [];
- fdg.initSimulation(options);
+ fdg.reinitSimulation();
});
it('should be created', () => {
@@ -96,14 +95,7 @@
// it('init links chould be called ', () => {
// spyOn(fdg, 'initLinks');
// // expect(fdg).toBeTruthy();
- // fdg.initSimulation(options);
+ // fdg.reinitSimulation(options);
// expect(fdg.initLinks).toHaveBeenCalled();
// });
-
- it ('throws error on no options', () => {
- expect(fdg.initSimulation).toThrowError('missing options when initializing simulation');
- });
-
-
-
});