From a3b0539754481559934f33919b15bcd222556698 Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Thu, 27 Sep 2018 15:05:47 +0200 Subject: [PATCH] stackdriver: update tests --- .../stackdriver/specs/query_aggregation_ctrl.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 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 d3a20deed77..3887381c9a8 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 @@ -14,16 +14,16 @@ describe('StackdriverAggregationCtrl', () => { it('should populate all aggregate options except two', () => { ctrl.setAggOptions(); - expect(ctrl.$scope.aggOptions.length).toBe(11); - expect(ctrl.$scope.aggOptions.map(o => o.value)).toEqual( + expect(ctrl.aggOptions.length).toBe(11); + expect(ctrl.aggOptions.map(o => o.value)).toEqual( expect['not'].arrayContaining(['REDUCE_COUNT_TRUE', 'REDUCE_COUNT_FALSE']) ); }); it('should populate all alignment options except two', () => { ctrl.setAlignOptions(); - expect(ctrl.$scope.alignOptions.length).toBe(10); - expect(ctrl.$scope.alignOptions.map(o => o.value)).toEqual( + expect(ctrl.alignOptions.length).toBe(9); + expect(ctrl.alignOptions.map(o => o.value)).toEqual( expect['not'].arrayContaining(['REDUCE_COUNT_TRUE', 'REDUCE_COUNT_FALSE']) ); });