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