From e71e2b3035656fe41ef589e98a9a69e80c5639e1 Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Tue, 8 Jan 2019 12:52:47 +0100 Subject: [PATCH] refactoring tests --- .../datasource/stackdriver/components/QueryEditor.test.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/public/app/plugins/datasource/stackdriver/components/QueryEditor.test.tsx b/public/app/plugins/datasource/stackdriver/components/QueryEditor.test.tsx index 30cfa9fbfd5..86682f20035 100644 --- a/public/app/plugins/datasource/stackdriver/components/QueryEditor.test.tsx +++ b/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', () => {