Simon Hunt

GUI -- Fixed broken table-spec unit tests.

Change-Id: I3b4d777a3f514759a2b19e442ad320280f46e5b4
...@@ -72,8 +72,14 @@ describe('factory: fw/widget/table.js', function() { ...@@ -72,8 +72,14 @@ describe('factory: fw/widget/table.js', function() {
72 beforeEach(inject(function (TableService, _$log_) { 72 beforeEach(inject(function (TableService, _$log_) {
73 ts = TableService; 73 ts = TableService;
74 $log = _$log_; 74 $log = _$log_;
75 + d3Elem = d3.select('body').append('div').attr('id', 'myDiv');
75 })); 76 }));
76 77
78 + afterEach(function () {
79 + d3.select('#myDiv').remove();
80 + });
81 +
82 +
77 it('should define TableService', function () { 83 it('should define TableService', function () {
78 expect(ts).toBeDefined(); 84 expect(ts).toBeDefined();
79 }); 85 });
......