aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-08-04 12:50:41 +0800
committerkumavis <aaron@kumavis.me>2017-08-04 12:50:41 +0800
commitf804567d24cd3e0bd6d8dd77f637da79207c5e08 (patch)
tree209dddac3f00fbbc022eac6c9d1dbaf182c80e24
parent925edd5f7decfc3272b6ad5bf9b44ca8504fd0c8 (diff)
downloadtangerine-wallet-browser-f804567d24cd3e0bd6d8dd77f637da79207c5e08.tar.gz
tangerine-wallet-browser-f804567d24cd3e0bd6d8dd77f637da79207c5e08.tar.zst
tangerine-wallet-browser-f804567d24cd3e0bd6d8dd77f637da79207c5e08.zip
test - integration - syntax - prefer const
-rw-r--r--test/integration/index.js19
1 files changed, 7 insertions, 12 deletions
diff --git a/test/integration/index.js b/test/integration/index.js
index 549b7d37c..ab418a146 100644
--- a/test/integration/index.js
+++ b/test/integration/index.js
@@ -1,18 +1,13 @@
-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, 'bundle.js')
+const fs = require('fs')
+const path = require('path')
+const browserify = require('browserify')
+const tests = fs.readdirSync(path.join(__dirname, 'lib'))
+const bundlePath = path.join(__dirname, 'bundle.js')
-var b = browserify()
+const b = browserify()
-// Remove old bundle
try {
- // if (fs.existsSync(bundlePath)) {
- // fs.unlinkSync(bundlePath)
- // }
-
- var writeStream = fs.createWriteStream(bundlePath)
+ const writeStream = fs.createWriteStream(bundlePath)
tests.forEach(function (fileName) {
b.add(path.join(__dirname, 'lib', fileName))