From 9622536a9840eb2450bc791479d1a14a7170797f Mon Sep 17 00:00:00 2001 From: Ryan McKinley Date: Mon, 18 May 2020 01:21:21 -0700 Subject: [PATCH] Dashboard: Remove isTimezoneUtc (#24754) --- .../app/plugins/panel/graph/specs/time_region_manager.test.ts | 4 +--- public/test/specs/helpers.ts | 3 --- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/public/app/plugins/panel/graph/specs/time_region_manager.test.ts b/public/app/plugins/panel/graph/specs/time_region_manager.test.ts index 00c5354c496..72ad92402e8 100644 --- a/public/app/plugins/panel/graph/specs/time_region_manager.test.ts +++ b/public/app/plugins/panel/graph/specs/time_region_manager.test.ts @@ -13,9 +13,7 @@ describe('TimeRegionManager', () => { }, panelCtrl: { range: {}, - dashboard: { - isTimezoneUtc: () => false, - }, + dashboard: {}, }, }; diff --git a/public/test/specs/helpers.ts b/public/test/specs/helpers.ts index 243d8ac07a3..2c2008b88c3 100644 --- a/public/test/specs/helpers.ts +++ b/public/test/specs/helpers.ts @@ -57,9 +57,6 @@ export function ControllerTestContext(this: any) { self.dashboard.getTimezone = () => { return self.isUtc ? 'utc' : 'browser'; }; - self.dashboard.isTimezoneUtc = () => { - return self.isUtc; - }; $rootScope.appEvent = sinon.spy(); $rootScope.onAppEvent = sinon.spy();