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(