diff --git a/test/karma.conf.js b/test/karma.conf.js index 0c0e94ba..de6e80aa 100644 --- a/test/karma.conf.js +++ b/test/karma.conf.js @@ -102,7 +102,7 @@ module.exports = function(config) { bs_safari_14: { base: 'BrowserStack', browser: 'Safari', - browser_version: '14', + browser_version: '14.0', os: 'OS X', os_version: 'Big Sur' }, diff --git a/test/unittests.js b/test/unittests.js index 71125a7a..a29bb818 100644 --- a/test/unittests.js +++ b/test/unittests.js @@ -31,6 +31,10 @@ describe('Unit Tests', function () { openpgp.config.s2kIterationCountByte = 0; if (typeof window !== 'undefined') { + window.addEventListener('unhandledrejection', function (event) { + throw event.reason; + }); + window.location.search.substr(1).split('&').forEach(param => { const [key, value] = param.split('='); if (key && key !== 'grep') {