diff options
author | kumavis <aaron@kumavis.me> | 2017-09-16 03:19:52 +0800 |
---|---|---|
committer | kumavis <aaron@kumavis.me> | 2017-09-16 03:19:52 +0800 |
commit | 779e973b45ac3c5c48d471218ed63848a6653a56 (patch) | |
tree | 14fd5ef7f1d2c4f5b0b5af981ac84b01093744d4 | |
parent | c5a2527c17f9c7f47645dc4d99694645d1985022 (diff) | |
download | tangerine-wallet-browser-779e973b45ac3c5c48d471218ed63848a6653a56.tar.gz tangerine-wallet-browser-779e973b45ac3c5c48d471218ed63848a6653a56.tar.zst tangerine-wallet-browser-779e973b45ac3c5c48d471218ed63848a6653a56.zip |
tests - integration - mascara - small cleanup and timeout adjustments
-rw-r--r-- | mascara/src/ui.js | 6 | ||||
-rw-r--r-- | test/integration/lib/first-time.js | 8 |
2 files changed, 5 insertions, 9 deletions
diff --git a/mascara/src/ui.js b/mascara/src/ui.js index d70dca724..2f940ad1a 100644 --- a/mascara/src/ui.js +++ b/mascara/src/ui.js @@ -63,9 +63,7 @@ function windowReload() { } function timeout (time) { - return new Promise(function (resolve, reject) { - setTimeout(function () { - resolve() - }, time || 1500) + return new Promise((resolve) => { + setTimeout(resolve, time || 1500) }) }
\ No newline at end of file diff --git a/test/integration/lib/first-time.js b/test/integration/lib/first-time.js index e84a51c64..8b3997867 100644 --- a/test/integration/lib/first-time.js +++ b/test/integration/lib/first-time.js @@ -13,7 +13,7 @@ QUnit.test('render init screen', (assert) => { async function runFirstTimeUsageTest(assert, done) { let waitTime = 0 window.METAMASK_SKIP_RELOAD = true - if (window.METAMASK_PLATFORM_TYPE === 'mascara') waitTime = 1000 + if (window.METAMASK_PLATFORM_TYPE === 'mascara') waitTime = 2000 await timeout(waitTime) const app = $('#app-content') @@ -126,9 +126,7 @@ async function runFirstTimeUsageTest(assert, done) { } function timeout (time) { - return new Promise(function (resolve, reject) { - setTimeout(function () { - resolve() - }, time * 3 || 1500) + return new Promise((resolve, reject) => { + setTimeout(resolve, time || 1500) }) }
\ No newline at end of file |