1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

test - integration - intercept reload attempts

This commit is contained in:
kumavis 2017-10-10 21:10:35 -07:00
parent 4096ec9f69
commit d31c746210

View File

@ -3,6 +3,9 @@ const PASSWORD = 'password123'
QUnit.module('first time usage')
QUnit.test('render init screen', (assert) => {
// intercept reload attempts
window.onbeforeunload = () => true
const done = assert.async()
runFirstTimeUsageTest(assert).then(done).catch((err) => {
assert.notOk(err, `Error was thrown: ${err.stack}`)