Commit ccebc044 authored by Richard Smith-Unna's avatar Richard Smith-Unna

debug promises

parent 2f24bc52
Pipeline #1098 failed with stage
in 5 minutes and 58 seconds
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')
......
......@@ -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 })
})
}
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment