瀏覽代碼

refactoring tests

Erik Sundell 7 年之前
父節點
當前提交
e71e2b3035
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      public/app/plugins/datasource/stackdriver/components/QueryEditor.test.tsx

+ 5 - 1
public/app/plugins/datasource/stackdriver/components/QueryEditor.test.tsx

@@ -7,7 +7,11 @@ const props: Props = {
   onExecuteQuery: () => {},
   target: DefaultTarget,
   events: { on: () => {} },
-  datasource: { templateSrv: { variables: [] } },
+  datasource: {
+    templateSrv: { variables: [] },
+    getDefaultProject: () => 'project',
+    getMetricTypes: () => [],
+  },
 };
 
 describe('QueryEditor', () => {