diff options
author | Анна <anna@MacBook-Air-Anna.local> | 2018-07-05 11:15:28 +0800 |
---|---|---|
committer | Анна <anna@MacBook-Air-Anna.local> | 2018-07-05 11:15:28 +0800 |
commit | 90934bca46cf990554cbf9be9e302ab5e2fc8041 (patch) | |
tree | ee68fa3d98e8c0e072980fd07397b3a9bd40d640 /test/lib/util.js | |
parent | 1f6bf0a80d43252d7b84e8e0247a524b77569810 (diff) | |
parent | fd218142acb6dab0b2f921b9729f17ff90cffc2d (diff) | |
download | tangerine-wallet-browser-90934bca46cf990554cbf9be9e302ab5e2fc8041.tar tangerine-wallet-browser-90934bca46cf990554cbf9be9e302ab5e2fc8041.tar.gz tangerine-wallet-browser-90934bca46cf990554cbf9be9e302ab5e2fc8041.tar.bz2 tangerine-wallet-browser-90934bca46cf990554cbf9be9e302ab5e2fc8041.tar.lz tangerine-wallet-browser-90934bca46cf990554cbf9be9e302ab5e2fc8041.tar.xz tangerine-wallet-browser-90934bca46cf990554cbf9be9e302ab5e2fc8041.tar.zst tangerine-wallet-browser-90934bca46cf990554cbf9be9e302ab5e2fc8041.zip |
Merge branch 'develop' into to-autocomplete
Diffstat (limited to 'test/lib/util.js')
-rw-r--r-- | test/lib/util.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/lib/util.js b/test/lib/util.js index 626280745..858565bb9 100644 --- a/test/lib/util.js +++ b/test/lib/util.js @@ -11,7 +11,7 @@ function timeout (time) { }) } -async function findAsync(container, selector, opts) { +async function findAsync (container, selector, opts) { try { return await pollUntilTruthy(() => { const result = container.find(selector) @@ -22,7 +22,7 @@ async function findAsync(container, selector, opts) { } } -async function queryAsync(jQuery, selector, opts) { +async function queryAsync (jQuery, selector, opts) { try { return await pollUntilTruthy(() => { const result = jQuery(selector) @@ -33,7 +33,7 @@ async function queryAsync(jQuery, selector, opts) { } } -async function pollUntilTruthy(fn, opts = {}){ +async function pollUntilTruthy (fn, opts = {}) { const pollingInterval = opts.pollingInterval || 100 const timeoutInterval = opts.timeoutInterval || 5000 const start = Date.now() |