test - integration - syntax - prefer const

feature/default_network_editable
kumavis 7 years ago
parent 925edd5f7d
commit f804567d24
  1. 19
      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))

Loading…
Cancel
Save