Explorar el Código

Change to arrow functions

Tobias Skarhed hace 7 años
padre
commit
529883b61d
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      public/app/plugins/panel/graph/specs/graph_ctrl.jest.ts

+ 2 - 2
public/app/plugins/panel/graph/specs/graph_ctrl.jest.ts

@@ -18,12 +18,12 @@ describe('GraphCtrl', function() {
   };
 
   let scope = {
-    $on: function() {},
+    $on: () => {},
   };
 
   GraphCtrl.prototype.panel = {
     events: {
-      on: function() {},
+      on: () => {},
     },
     gridPos: {
       w: 100,