diff options
author | kumavis <kumavis@users.noreply.github.com> | 2017-05-05 09:01:46 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-05 09:01:46 +0800 |
commit | f01891fc019b748151365cf7b04cbc26c94f3d06 (patch) | |
tree | c54cdcacb46b91ba5bd22451ec72f8a092495b22 /test/helper.js | |
parent | a72f50509010a12bf4fb879f2c638a38d2a210d2 (diff) | |
parent | 1e4855fc0e2e89ebe6b50ff8d34762f742433110 (diff) | |
download | tangerine-wallet-browser-f01891fc019b748151365cf7b04cbc26c94f3d06.tar tangerine-wallet-browser-f01891fc019b748151365cf7b04cbc26c94f3d06.tar.gz tangerine-wallet-browser-f01891fc019b748151365cf7b04cbc26c94f3d06.tar.bz2 tangerine-wallet-browser-f01891fc019b748151365cf7b04cbc26c94f3d06.tar.lz tangerine-wallet-browser-f01891fc019b748151365cf7b04cbc26c94f3d06.tar.xz tangerine-wallet-browser-f01891fc019b748151365cf7b04cbc26c94f3d06.tar.zst tangerine-wallet-browser-f01891fc019b748151365cf7b04cbc26c94f3d06.zip |
Merge pull request #1376 from MetaMask/1061-Linting-Tests
1061 linting tests
Diffstat (limited to 'test/helper.js')
-rw-r--r-- | test/helper.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/test/helper.js b/test/helper.js index aaac7580e..1c5934a89 100644 --- a/test/helper.js +++ b/test/helper.js @@ -20,14 +20,12 @@ window.localStorage = {} if (!window.crypto) window.crypto = {} if (!window.crypto.getRandomValues) window.crypto.getRandomValues = require('polyfill-crypto.getrandomvalues') - - -function enableFailureOnUnhandledPromiseRejection() { +function enableFailureOnUnhandledPromiseRejection () { // overwrite node's promise with the stricter Bluebird promise global.Promise = require('bluebird') // modified from https://github.com/mochajs/mocha/issues/1926#issuecomment-180842722 - + // rethrow unhandledRejections if (typeof process !== 'undefined') { process.on('unhandledRejection', function (reason) { @@ -51,4 +49,4 @@ function enableFailureOnUnhandledPromiseRejection() { typeof (console.error || console.log) === 'function') { (console.error || console.log)('Unhandled rejections will be ignored!') } -}
\ No newline at end of file +} |