소스 검색

stackdriver: workaround for the fact the jest definitions does not include not

Erik Sundell 7 년 전
부모
커밋
c3780d09d4
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      public/app/plugins/datasource/stackdriver/specs/query_aggregation_ctrl.test.ts

+ 2 - 2
public/app/plugins/datasource/stackdriver/specs/query_aggregation_ctrl.test.ts

@@ -16,7 +16,7 @@ describe('StackdriverAggregationCtrl', () => {
           ctrl.setAggOptions();
           expect(ctrl.$scope.aggOptions.length).toBe(11);
           expect(ctrl.$scope.aggOptions.map(o => o.value)).toEqual(
-            expect.not.arrayContaining(['REDUCE_COUNT_TRUE', 'REDUCE_COUNT_FALSE'])
+            expect['not'].arrayContaining(['REDUCE_COUNT_TRUE', 'REDUCE_COUNT_FALSE'])
           );
         });
 
@@ -24,7 +24,7 @@ describe('StackdriverAggregationCtrl', () => {
           ctrl.setAlignOptions();
           expect(ctrl.$scope.alignOptions.length).toBe(10);
           expect(ctrl.$scope.alignOptions.map(o => o.value)).toEqual(
-            expect.not.arrayContaining(['REDUCE_COUNT_TRUE', 'REDUCE_COUNT_FALSE'])
+            expect['not'].arrayContaining(['REDUCE_COUNT_TRUE', 'REDUCE_COUNT_FALSE'])
           );
         });
       });