瀏覽代碼

Update config mock in metrics panel controller test

Dominik Prokop 6 年之前
父節點
當前提交
512aa62efc
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      public/app/features/panel/specs/metrics_panel_ctrl.test.ts

+ 3 - 0
public/app/features/panel/specs/metrics_panel_ctrl.test.ts

@@ -1,6 +1,9 @@
 jest.mock('app/core/core', () => ({}));
 jest.mock('app/core/config', () => {
   return {
+    bootData: {
+      user: {},
+    },
     panels: {
       test: {
         id: 'test',