diff options
author | Thomas Huang <thomas.b.huang@gmail.com> | 2017-05-05 05:35:10 +0800 |
---|---|---|
committer | Thomas Huang <thomas.b.huang@gmail.com> | 2017-05-05 05:35:10 +0800 |
commit | 0b13429daf00ddd5bdf2705c7a95d7a9d5792f54 (patch) | |
tree | f249d8deb5fa48db54d70757de944b2c8ff76a2e /test/integration | |
parent | 8f5334e4aca8b95963f57b0fbf862256b692dbd9 (diff) | |
download | tangerine-wallet-browser-0b13429daf00ddd5bdf2705c7a95d7a9d5792f54.tar tangerine-wallet-browser-0b13429daf00ddd5bdf2705c7a95d7a9d5792f54.tar.gz tangerine-wallet-browser-0b13429daf00ddd5bdf2705c7a95d7a9d5792f54.tar.bz2 tangerine-wallet-browser-0b13429daf00ddd5bdf2705c7a95d7a9d5792f54.tar.lz tangerine-wallet-browser-0b13429daf00ddd5bdf2705c7a95d7a9d5792f54.tar.xz tangerine-wallet-browser-0b13429daf00ddd5bdf2705c7a95d7a9d5792f54.tar.zst tangerine-wallet-browser-0b13429daf00ddd5bdf2705c7a95d7a9d5792f54.zip |
Lint tests
Diffstat (limited to 'test/integration')
-rw-r--r-- | test/integration/helpers.js | 4 | ||||
-rw-r--r-- | test/integration/index.js | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/test/integration/helpers.js b/test/integration/helpers.js index eede103b4..10cd74e64 100644 --- a/test/integration/helpers.js +++ b/test/integration/helpers.js @@ -1,6 +1,6 @@ function wait(time) { - return new Promise(function(resolve, reject) { - setTimeout(function() { + return new Promise(function (resolve, reject) { + setTimeout(function () { resolve() }, time * 3 || 1500) }) diff --git a/test/integration/index.js b/test/integration/index.js index ff6d1baf8..f2d656b0b 100644 --- a/test/integration/index.js +++ b/test/integration/index.js @@ -1,10 +1,10 @@ var fs = require('fs') var path = require('path') -var browserify = require('browserify'); +var browserify = require('browserify') var tests = fs.readdirSync(path.join(__dirname, 'lib')) var bundlePath = path.join(__dirname, 'bundle.js') -var b = browserify(); +var b = browserify() // Remove old bundle try { @@ -13,9 +13,9 @@ try { var writeStream = fs.createWriteStream(bundlePath) -tests.forEach(function(fileName) { +tests.forEach(function (fileName) { b.add(path.join(__dirname, 'lib', fileName)) }) -b.bundle().pipe(writeStream); +b.bundle().pipe(writeStream) |