From c5c403b6ef4947366d83ffe6dd0b4f7e9a2f81f7 Mon Sep 17 00:00:00 2001 From: Daniel Lee Date: Thu, 14 Dec 2017 08:59:58 +0100 Subject: [PATCH] orgswitcher: update test --- public/app/core/specs/org_switcher.jest.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/app/core/specs/org_switcher.jest.ts b/public/app/core/specs/org_switcher.jest.ts index eaa9031b15b..9597d78f586 100644 --- a/public/app/core/specs/org_switcher.jest.ts +++ b/public/app/core/specs/org_switcher.jest.ts @@ -21,7 +21,7 @@ describe('OrgSwitcher', () => { const orgSwitcherCtrl = new OrgSwitchCtrl(backendSrvStub); - orgSwitcherCtrl.getWindowLocationHref = () => 'http://localhost:3000?orgId=1'; + orgSwitcherCtrl.getWindowLocationHref = () => 'http://localhost:3000?orgId=1&from=now-3h&to=now'; orgSwitcherCtrl.setWindowLocationHref = (href) => expectedHref = href; return orgSwitcherCtrl.setUsingOrg({orgId: 2}); @@ -32,7 +32,7 @@ describe('OrgSwitcher', () => { }); it('should switch orgId in url', () => { - expect(expectedHref).toBe('http://localhost:3000?orgId=2'); + expect(expectedHref).toBe('http://localhost:3000?orgId=2&from=now-3h&to=now'); }); }); });