diff --git a/public/app/plugins/datasource/stackdriver/components/VariableQueryEditor.test.tsx b/public/app/plugins/datasource/stackdriver/components/VariableQueryEditor.test.tsx
index d1fc3d87288..b6e0793b10f 100644
--- a/public/app/plugins/datasource/stackdriver/components/VariableQueryEditor.test.tsx
+++ b/public/app/plugins/datasource/stackdriver/components/VariableQueryEditor.test.tsx
@@ -14,7 +14,7 @@ const props: VariableQueryProps = {
datasource: {
getMetricTypes: async p => [],
},
- templateSrv: { replace: s => s },
+ templateSrv: { replace: s => s, variables: [] },
};
describe('VariableQueryEditor', () => {
@@ -37,7 +37,7 @@ describe('VariableQueryEditor', () => {
it('should trigger new query using the saved query type', done => {
props.query = { selectedQueryType: MetricFindQueryTypes.LabelKeys };
props.onChange = (query, definition) => {
- expect(definition).toBe('Stackdriver - Labels Keys');
+ expect(definition).toBe('Stackdriver - Label Keys');
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 7478bb7a32e..e32a361c84f 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
@@ -25,14 +25,14 @@ Array [
Metric Types