Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
bb79e3cb
Commit
bb79e3cb
authored
Jan 31, 2018
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix broken karma specs due to removed function
parent
06e7c157
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
28 deletions
+2
-28
spec/javascripts/monitoring/dashboard_state_spec.js
spec/javascripts/monitoring/dashboard_state_spec.js
+1
-28
spec/javascripts/monitoring/mock_data.js
spec/javascripts/monitoring/mock_data.js
+1
-0
No files found.
spec/javascripts/monitoring/dashboard_state_spec.js
View file @
bb79e3cb
...
@@ -29,34 +29,6 @@ describe('EmptyState', () => {
...
@@ -29,34 +29,6 @@ describe('EmptyState', () => {
expect
(
component
.
currentState
).
toBe
(
component
.
states
.
gettingStarted
);
expect
(
component
.
currentState
).
toBe
(
component
.
states
.
gettingStarted
);
});
});
it
(
'
buttonPath returns settings path for the state "gettingStarted"
'
,
()
=>
{
const
component
=
createComponent
({
selectedState
:
'
gettingStarted
'
,
settingsPath
:
statePaths
.
settingsPath
,
documentationPath
:
statePaths
.
documentationPath
,
emptyGettingStartedSvgPath
:
'
foo
'
,
emptyLoadingSvgPath
:
'
foo
'
,
emptyUnableToConnectSvgPath
:
'
foo
'
,
});
expect
(
component
.
buttonPath
).
toEqual
(
statePaths
.
settingsPath
);
expect
(
component
.
buttonPath
).
not
.
toEqual
(
statePaths
.
documentationPath
);
});
it
(
'
buttonPath returns documentation path for any of the other states
'
,
()
=>
{
const
component
=
createComponent
({
selectedState
:
'
loading
'
,
settingsPath
:
statePaths
.
settingsPath
,
documentationPath
:
statePaths
.
documentationPath
,
emptyGettingStartedSvgPath
:
'
foo
'
,
emptyLoadingSvgPath
:
'
foo
'
,
emptyUnableToConnectSvgPath
:
'
foo
'
,
});
expect
(
component
.
buttonPath
).
toEqual
(
statePaths
.
documentationPath
);
expect
(
component
.
buttonPath
).
not
.
toEqual
(
statePaths
.
settingsPath
);
});
it
(
'
showButtonDescription returns a description with a link for the unableToConnect state
'
,
()
=>
{
it
(
'
showButtonDescription returns a description with a link for the unableToConnect state
'
,
()
=>
{
const
component
=
createComponent
({
const
component
=
createComponent
({
selectedState
:
'
unableToConnect
'
,
selectedState
:
'
unableToConnect
'
,
...
@@ -88,6 +60,7 @@ describe('EmptyState', () => {
...
@@ -88,6 +60,7 @@ describe('EmptyState', () => {
const
component
=
createComponent
({
const
component
=
createComponent
({
selectedState
:
'
gettingStarted
'
,
selectedState
:
'
gettingStarted
'
,
settingsPath
:
statePaths
.
settingsPath
,
settingsPath
:
statePaths
.
settingsPath
,
clustersPath
:
statePaths
.
clustersPath
,
documentationPath
:
statePaths
.
documentationPath
,
documentationPath
:
statePaths
.
documentationPath
,
emptyGettingStartedSvgPath
:
'
foo
'
,
emptyGettingStartedSvgPath
:
'
foo
'
,
emptyLoadingSvgPath
:
'
foo
'
,
emptyLoadingSvgPath
:
'
foo
'
,
...
...
spec/javascripts/monitoring/mock_data.js
View file @
bb79e3cb
...
@@ -2471,6 +2471,7 @@ export const deploymentData = [
...
@@ -2471,6 +2471,7 @@ export const deploymentData = [
export
const
statePaths
=
{
export
const
statePaths
=
{
settingsPath
:
'
/root/hello-prometheus/services/prometheus/edit
'
,
settingsPath
:
'
/root/hello-prometheus/services/prometheus/edit
'
,
clustersPath
:
'
/root/hello-prometheus/clusters
'
,
documentationPath
:
'
/help/administration/monitoring/prometheus/index.md
'
,
documentationPath
:
'
/help/administration/monitoring/prometheus/index.md
'
,
};
};
...
...
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