diff --git a/public/app/plugins/datasource/stackdriver/components/TemplateQueryComponent.test.tsx b/public/app/plugins/datasource/stackdriver/components/TemplateQueryComponent.test.tsx index 05519c2e17d..a31948e9a16 100644 --- a/public/app/plugins/datasource/stackdriver/components/TemplateQueryComponent.test.tsx +++ b/public/app/plugins/datasource/stackdriver/components/TemplateQueryComponent.test.tsx @@ -4,7 +4,7 @@ import { StackdriverTemplateQueryComponent } from './TemplateQueryComponent'; import { TemplateQueryProps } from 'app/types/plugins'; jest.mock('../functions', () => ({ - getMetricTypes: () => Promise.resolve({ metricTypes: [], selectedMetricType: '' }), + getMetricTypes: async () => ({ metricTypes: [], selectedMetricType: '' }), extractServicesFromMetricDescriptors: m => m, }));