From c3780d09d4705ec029e8fe11b46ba7425e1f76f3 Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Wed, 26 Sep 2018 17:56:45 +0200 Subject: [PATCH] stackdriver: workaround for the fact the jest definitions does not include not --- .../stackdriver/specs/query_aggregation_ctrl.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/app/plugins/datasource/stackdriver/specs/query_aggregation_ctrl.test.ts b/public/app/plugins/datasource/stackdriver/specs/query_aggregation_ctrl.test.ts index af8d8aee3c7..efc935dd338 100644 --- a/public/app/plugins/datasource/stackdriver/specs/query_aggregation_ctrl.test.ts +++ b/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']) ); }); });