Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
pubsweet
pubsweet-client
Commits
ccebc044
Commit
ccebc044
authored
Apr 03, 2017
by
Richard Smith-Unna
Browse files
debug promises
parent
2f24bc52
Pipeline
#1098
failed with stage
in 5 minutes and 58 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
test/actions.js
View file @
ccebc044
process
.
on
(
'
unhandledRejection
'
,
(
reason
,
promise
)
=>
{
throw
reason
;
console
.
error
(
reason
);
})
jasmine
.
DEFAULT_TIMEOUT_INTERVAL
=
600000
process
.
env
.
NODE_ENV
=
'
production
'
process
.
env
.
SILENT_NPM
=
'
true
'
global
.
PUBSWEET_COMPONENTS
=
[]
const
expect
=
require
.
requireActual
(
'
chai
'
).
expect
const
collections
=
require
(
'
./actions/collections
'
)
const
fragments
=
require
(
'
./actions/fragments
'
)
const
currentUser
=
require
(
'
./actions/currentUser
'
)
...
...
test/helpers/describeAction.js
View file @
ccebc044
...
...
@@ -118,7 +118,7 @@ const describeAction = actions => (key, opts, cb) => {
}
data
[
opts
.
types
.
success
]
=
dispatched
}
).
then
(
auth
.
logout
)
).
then
(
auth
.
logout
)
.
catch
(
e
=>
{
throw
e
})
})
}
...
...
@@ -145,7 +145,7 @@ const describeAction = actions => (key, opts, cb) => {
}
data
[
opts
.
types
.
failure
]
=
dispatched
}
)
)
.
catch
(
e
=>
{
throw
e
})
})
}
})
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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