Browse Source

Remove extra mock

Tobias Skarhed 7 years ago
parent
commit
805dc3542f
1 changed files with 9 additions and 12 deletions
  1. 9 12
      public/app/plugins/panel/heatmap/specs/heatmap_ctrl.jest.ts

+ 9 - 12
public/app/plugins/panel/heatmap/specs/heatmap_ctrl.jest.ts

@@ -5,26 +5,23 @@ describe('HeatmapCtrl', function() {
   let ctx = <any>{};
   let ctx = <any>{};
 
 
   let $injector = {
   let $injector = {
-      get: () => {}
+    get: () => {},
   };
   };
 
 
   let $scope = {
   let $scope = {
     $on: () => {},
     $on: () => {},
-    events: {
-        on: () => {}
-    }
   };
   };
 
 
-HeatmapCtrl.prototype.panel = {
+  HeatmapCtrl.prototype.panel = {
     events: {
     events: {
-        on: () => {},
-        emit: () => {}
-    }
-};
+      on: () => {},
+      emit: () => {},
+    },
+  };
 
 
-    beforeEach(() => {
-        ctx.ctrl = new HeatmapCtrl($scope, $injector, {});
-    });
+  beforeEach(() => {
+    ctx.ctrl = new HeatmapCtrl($scope, $injector, {});
+  });
 
 
   describe('when time series are outside range', function() {
   describe('when time series are outside range', function() {
     beforeEach(function() {
     beforeEach(function() {