ソースを参照

Change to arrow functions

Tobias Skarhed 7 年 前
コミット
529883b61d
1 ファイル変更2 行追加2 行削除
  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 = {
   let scope = {
-    $on: function() {},
+    $on: () => {},
   };
   };
 
 
   GraphCtrl.prototype.panel = {
   GraphCtrl.prototype.panel = {
     events: {
     events: {
-      on: function() {},
+      on: () => {},
     },
     },
     gridPos: {
     gridPos: {
       w: 100,
       w: 100,