diff --git a/public/app/plugins/datasource/stackdriver/components/VariableQueryEditor.test.tsx b/public/app/plugins/datasource/stackdriver/components/VariableQueryEditor.test.tsx index b6e0793b10f..0f31d25ee4e 100644 --- a/public/app/plugins/datasource/stackdriver/components/VariableQueryEditor.test.tsx +++ b/public/app/plugins/datasource/stackdriver/components/VariableQueryEditor.test.tsx @@ -6,6 +6,7 @@ import { MetricFindQueryTypes } from '../types'; jest.mock('../functions', () => ({ getMetricTypes: () => ({ metricTypes: [], selectedMetricType: '' }), + extractServicesFromMetricDescriptors: () => [], })); const props: VariableQueryProps = { @@ -26,7 +27,7 @@ describe('VariableQueryEditor', () => { describe('and a new variable is created', () => { it('should trigger a query using the first query type in the array', done => { props.onChange = (query, definition) => { - expect(definition).toBe('Stackdriver - Metric Types'); + expect(definition).toBe('Stackdriver - Services'); done(); }; renderer.create().toJSON(); diff --git a/public/app/plugins/datasource/stackdriver/components/__snapshots__/VariableQueryEditor.test.tsx.snap b/public/app/plugins/datasource/stackdriver/components/__snapshots__/VariableQueryEditor.test.tsx.snap index e32a361c84f..e4ad23bc8e7 100644 --- a/public/app/plugins/datasource/stackdriver/components/__snapshots__/VariableQueryEditor.test.tsx.snap +++ b/public/app/plugins/datasource/stackdriver/components/__snapshots__/VariableQueryEditor.test.tsx.snap @@ -6,19 +6,24 @@ Array [ className="gf-form max-width-21" > - Query Types + Query Type
, -
- - Services - -
-