aboutsummaryrefslogtreecommitdiffstats
path: root/mascara/test/index.js
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2017-04-29 03:37:53 +0800
committerGitHub <noreply@github.com>2017-04-29 03:37:53 +0800
commit012f837c1d658eb24e45da41a192de31907a31b1 (patch)
tree778b3bb1c745de683ca9d0eb5bf97d3742ab51d2 /mascara/test/index.js
parent6f17c996c22801cc5fbdc060b7365c2da1c3087f (diff)
parentd4cad22fa7b2e9e05ac98a490cb446b37d6978f9 (diff)
downloadtangerine-wallet-browser-012f837c1d658eb24e45da41a192de31907a31b1.tar.gz
tangerine-wallet-browser-012f837c1d658eb24e45da41a192de31907a31b1.tar.zst
tangerine-wallet-browser-012f837c1d658eb24e45da41a192de31907a31b1.zip
Merge pull request #1356 from MetaMask/mascaraTuneUps
Mascara tune ups
Diffstat (limited to 'mascara/test/index.js')
-rw-r--r--mascara/test/index.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/mascara/test/index.js b/mascara/test/index.js
new file mode 100644
index 000000000..0134cdf00
--- /dev/null
+++ b/mascara/test/index.js
@@ -0,0 +1,22 @@
+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) {
+ console.error(e)
+}
+
+var writeStream = fs.createWriteStream(bundlePath)
+
+tests.forEach(function(fileName) {
+ b.add(path.join(__dirname, 'lib', fileName))
+})
+
+b.bundle().pipe(writeStream);
+