Simon Hunt

GUI -- fixed broken unit tests.

Change-Id: I6563d9965d1d4fd47b0302b090f09431eb25a49a
...@@ -41,7 +41,7 @@ describe('factory: fw/svg/svgUtil.js', function() { ...@@ -41,7 +41,7 @@ describe('factory: fw/svg/svgUtil.js', function() {
41 it('should define api functions', function () { 41 it('should define api functions', function () {
42 expect(fs.areFunctions(sus, [ 42 expect(fs.areFunctions(sus, [
43 'createDragBehavior', 'loadGlow', 'cat7', 'translate', 'stripPx', 43 'createDragBehavior', 'loadGlow', 'cat7', 'translate', 'stripPx',
44 - 'makeVisible' 44 + 'makeVisible', 'safeId'
45 ])).toBeTruthy(); 45 ])).toBeTruthy();
46 }); 46 });
47 47
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
20 describe('factory: view/topo/topoForce.js', function() { 20 describe('factory: view/topo/topoForce.js', function() {
21 var $log, fs, tfs; 21 var $log, fs, tfs;
22 22
23 - beforeEach(module('ovTopo', 'onosUtil')); 23 + beforeEach(module('ovTopo', 'onosUtil', 'onosLayer'));
24 24
25 beforeEach(inject(function (_$log_, FnService, TopoForceService) { 25 beforeEach(inject(function (_$log_, FnService, TopoForceService) {
26 $log = _$log_; 26 $log = _$log_;
...@@ -34,7 +34,8 @@ describe('factory: view/topo/topoForce.js', function() { ...@@ -34,7 +34,8 @@ describe('factory: view/topo/topoForce.js', function() {
34 34
35 it('should define api functions', function () { 35 it('should define api functions', function () {
36 expect(fs.areFunctions(tfs, [ 36 expect(fs.areFunctions(tfs, [
37 - 'initForce', 'resize' 37 + 'initForce', 'resize', 'updateDeviceColors',
38 + 'addDevice', 'updateDevice'
38 ])).toBeTruthy(); 39 ])).toBeTruthy();
39 }); 40 });
40 41
......
...@@ -35,7 +35,8 @@ describe('factory: view/topo/topoInst.js', function() { ...@@ -35,7 +35,8 @@ describe('factory: view/topo/topoInst.js', function() {
35 it('should define api functions', function () { 35 it('should define api functions', function () {
36 expect(fs.areFunctions(tis, [ 36 expect(fs.areFunctions(tis, [
37 'initInst', 'destroyInst', 37 'initInst', 'destroyInst',
38 - 'addInstance', 'updateInstance', 'removeInstance' 38 + 'addInstance', 'updateInstance', 'removeInstance',
39 + 'isVisible', 'show', 'hide'
39 ])).toBeTruthy(); 40 ])).toBeTruthy();
40 }); 41 });
41 42
......