diff options
-rw-r--r-- | test/integration/index.js | 19 |
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)) |