소스 검색

stackdriver: update tests

Erik Sundell 7 년 전
부모
커밋
209b1c026e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      public/app/plugins/datasource/stackdriver/components/TemplateQueryComponent.test.tsx

+ 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';
 
 jest.mock('../functions', () => ({
-  getMetricTypes: () => Promise.resolve({ metricTypes: [], selectedMetricType: '' }),
+  getMetricTypes: async () => ({ metricTypes: [], selectedMetricType: '' }),
   extractServicesFromMetricDescriptors: m => m,
 }));