diff options
author | frankiebee <frankie.diamond@gmail.com> | 2017-04-27 21:25:00 +0800 |
---|---|---|
committer | frankiebee <frankie.diamond@gmail.com> | 2017-04-28 20:11:05 +0800 |
commit | e7e0919d7c76c818590df4435db0152298298bd9 (patch) | |
tree | 983ecff23851d9abb2633b28210e7401becf15a3 /mascara/test/index.js | |
parent | e7c7c85791377bdd55042e6a4b026f4424230408 (diff) | |
download | tangerine-wallet-browser-e7e0919d7c76c818590df4435db0152298298bd9.tar tangerine-wallet-browser-e7e0919d7c76c818590df4435db0152298298bd9.tar.gz tangerine-wallet-browser-e7e0919d7c76c818590df4435db0152298298bd9.tar.bz2 tangerine-wallet-browser-e7e0919d7c76c818590df4435db0152298298bd9.tar.lz tangerine-wallet-browser-e7e0919d7c76c818590df4435db0152298298bd9.tar.xz tangerine-wallet-browser-e7e0919d7c76c818590df4435db0152298298bd9.tar.zst tangerine-wallet-browser-e7e0919d7c76c818590df4435db0152298298bd9.zip |
Setup test enviroment for mascara
Diffstat (limited to 'mascara/test/index.js')
-rw-r--r-- | mascara/test/index.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/mascara/test/index.js b/mascara/test/index.js new file mode 100644 index 000000000..b94ce16dd --- /dev/null +++ b/mascara/test/index.js @@ -0,0 +1,20 @@ +var fs = require('fs') +var path = require('path') +var browserify = require('browserify'); +var tests = fs.readdirSync(path.join(__dirname, 'lib')) +var bundlePath = path.join(__dirname, 'test-bundle.js') +var b = browserify(); + +// Remove old bundle +try { + fs.unlinkSync(bundlePath) +} catch (e) {} + +var writeStream = fs.createWriteStream(bundlePath) + +tests.forEach(function(fileName) { + b.add(path.join(__dirname, 'lib', fileName)) +}) + +b.bundle().pipe(writeStream); + |