Przeglądaj źródła

stackdriver: update tests

Erik Sundell 7 lat temu
rodzic
commit
209b1c026e

+ 1 - 1
public/app/plugins/datasource/stackdriver/components/TemplateQueryComponent.test.tsx

@@ -4,7 +4,7 @@ import { StackdriverTemplateQueryComponent } from './TemplateQueryComponent';
 import { TemplateQueryProps } from 'app/types/plugins';
 import { TemplateQueryProps } from 'app/types/plugins';
 
 
 jest.mock('../functions', () => ({
 jest.mock('../functions', () => ({
-  getMetricTypes: () => Promise.resolve({ metricTypes: [], selectedMetricType: '' }),
+  getMetricTypes: async () => ({ metricTypes: [], selectedMetricType: '' }),
   extractServicesFromMetricDescriptors: m => m,
   extractServicesFromMetricDescriptors: m => m,
 }));
 }));