Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
c5c403b6
Commit
c5c403b6
authored
Dec 14, 2017
by
Daniel Lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
orgswitcher: update test
parent
00e24130
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
public/app/core/specs/org_switcher.jest.ts
+2
-2
No files found.
public/app/core/specs/org_switcher.jest.ts
View file @
c5c403b6
...
...
@@ -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
'
);
});
});
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment