Skip to content

Commit

Permalink
Print detailed error for serviceWorker test (#12186)
Browse files Browse the repository at this point in the history
  • Loading branch information
zcbenz authored and codebytere committed Mar 9, 2018
1 parent 44c66fc commit cde0c1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/chromium-spec.js
Expand Up @@ -139,7 +139,7 @@ describe('chromium feature', () => {
if (args[0] === 'reload') {
w.webContents.reload()
} else if (args[0] === 'error') {
done(new Error(`unexpected error : ${JSON.stringify(args[1])}`))
done(args[1])
} else if (args[0] === 'response') {
assert.equal(args[1], 'Hello from serviceWorker!')
session.defaultSession.clearStorageData({
Expand Down
2 changes: 1 addition & 1 deletion spec/fixtures/pages/service-worker/index.html
Expand Up @@ -13,6 +13,6 @@
ipcRenderer.send('reload');
}
}).catch(function(error) {
ipcRenderer.send('error', error);
ipcRenderer.send('error', `${error.message}\n${error.stack}`);
})
</script>

0 comments on commit cde0c1d

Please sign in to comment.