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
Jérome Perrin
gitlab-ce
Commits
2848ed1f
Commit
2848ed1f
authored
Jul 03, 2018
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed karma
parent
9c8d8079
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
app/assets/javascripts/ide/stores/modules/pipelines/actions.js
...ssets/javascripts/ide/stores/modules/pipelines/actions.js
+2
-1
spec/javascripts/ide/stores/modules/pipelines/actions_spec.js
.../javascripts/ide/stores/modules/pipelines/actions_spec.js
+2
-2
No files found.
app/assets/javascripts/ide/stores/modules/pipelines/actions.js
View file @
2848ed1f
import
Visibility
from
'
visibilityjs
'
;
import
axios
from
'
axios
'
;
import
httpStatus
from
'
../../../../lib/utils/http_status
'
;
import
{
__
}
from
'
../../../../locale
'
;
import
Poll
from
'
../../../../lib/utils/poll
'
;
import
service
from
'
../../../services
'
;
...
...
@@ -23,7 +24,7 @@ export const forcePipelineRequest = () => {
export
const
requestLatestPipeline
=
({
commit
})
=>
commit
(
types
.
REQUEST_LATEST_PIPELINE
);
export
const
receiveLatestPipelineError
=
({
commit
,
dispatch
},
err
)
=>
{
if
(
err
.
response
.
status
!==
404
)
{
if
(
err
.
status
!==
httpStatus
.
NOT_FOUND
)
{
dispatch
(
'
setErrorMessage
'
,
{
...
...
spec/javascripts/ide/stores/modules/pipelines/actions_spec.js
View file @
2848ed1f
...
...
@@ -59,7 +59,7 @@ describe('IDE pipelines actions', () => {
it
(
'
commits error
'
,
done
=>
{
testAction
(
receiveLatestPipelineError
,
{
response
:
{
status
:
404
}
},
{
status
:
404
},
mockedState
,
[{
type
:
types
.
RECEIVE_LASTEST_PIPELINE_ERROR
}],
[{
type
:
'
stopPipelinePolling
'
}],
...
...
@@ -70,7 +70,7 @@ describe('IDE pipelines actions', () => {
it
(
'
dispatches setErrorMessage is not 404
'
,
done
=>
{
testAction
(
receiveLatestPipelineError
,
{
response
:
{
status
:
500
}
},
{
status
:
500
},
mockedState
,
[{
type
:
types
.
RECEIVE_LASTEST_PIPELINE_ERROR
}],
[
...
...
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