aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mascara/src/ui.js6
-rw-r--r--test/integration/lib/first-time.js8
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