Explorar o código

refactoring tests

Erik Sundell %!s(int64=7) %!d(string=hai) anos
pai
achega
e71e2b3035

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

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