CI: Detect unhandled rejections in browser tests (#1333)
Also, target the Safari release for macOS Big Sur in Browserstack.
This commit is contained in:
parent
df2240ba08
commit
b4e53b3ff7
|
@ -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'
|
||||
},
|
||||
|
|
|
@ -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') {
|
||||
|
|
Loading…
Reference in New Issue
Block a user