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
Léo-Paul Géneau
gitlab-ce
Commits
8e8cc85c
Commit
8e8cc85c
authored
Aug 03, 2018
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove frontend changes
parent
02bf0639
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
12 deletions
+2
-12
app/assets/javascripts/reports/store/actions.js
app/assets/javascripts/reports/store/actions.js
+0
-9
spec/javascripts/reports/store/actions_spec.js
spec/javascripts/reports/store/actions_spec.js
+1
-3
spec/javascripts/reports/store/mutations_spec.js
spec/javascripts/reports/store/mutations_spec.js
+1
-0
No files found.
app/assets/javascripts/reports/store/actions.js
View file @
8e8cc85c
import
Visibility
from
'
visibilityjs
'
;
import
$
from
'
jquery
'
;
import
axios
from
'
../../lib/utils/axios_utils
'
;
import
Poll
from
'
../../lib/utils/poll
'
;
import
*
as
types
from
'
./mutation_types
'
;
...
...
@@ -64,13 +63,5 @@ export const receiveReportsSuccess = ({ commit }, response) =>
export
const
receiveReportsError
=
({
commit
})
=>
commit
(
types
.
RECEIVE_REPORTS_ERROR
);
export
const
openModal
=
({
dispatch
},
payload
)
=>
{
dispatch
(
'
setModalData
'
,
payload
);
$
(
'
#modal-mrwidget-reports
'
).
modal
(
'
show
'
);
};
export
const
setModalData
=
({
commit
},
payload
)
=>
commit
(
types
.
SET_ISSUE_MODAL_DATA
,
payload
);
// prevent babel-plugin-rewire from generating an invalid default during karma tests
export
default
()
=>
{};
spec/javascripts/reports/store/actions_spec.js
View file @
8e8cc85c
...
...
@@ -56,9 +56,7 @@ describe('Reports Store Actions', () => {
describe
(
'
success
'
,
()
=>
{
it
(
'
dispatches requestReports and receiveReportsSuccess
'
,
done
=>
{
mock
.
onGet
(
`
${
TEST_HOST
}
/endpoint.json`
)
.
replyOnce
(
200
,
{
summary
:
{},
suites
:
[{
name
:
'
rspec
'
}]
});
mock
.
onGet
(
`
${
TEST_HOST
}
/endpoint.json`
).
replyOnce
(
200
,
{
summary
:
{},
suites
:
[{
name
:
'
rspec
'
}]
});
testAction
(
fetchReports
,
...
...
spec/javascripts/reports/store/mutations_spec.js
View file @
8e8cc85c
...
...
@@ -96,5 +96,6 @@ describe('Reports Store Mutations', () => {
it
(
'
should set hasError to true
'
,
()
=>
{
expect
(
stateCopy
.
hasError
).
toEqual
(
true
);
});
});
});
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