From 6e463e21138b0889cf85f6ecb2eaac3a425539b5 Mon Sep 17 00:00:00 2001 From: David Majda Date: Thu, 22 Sep 2016 19:20:50 +0200 Subject: [PATCH] {spec,benchmark}/server: Use template literals --- benchmark/server | 6 +++--- spec/server | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/benchmark/server b/benchmark/server index 667ebcb..f32bcf1 100755 --- a/benchmark/server +++ b/benchmark/server @@ -19,11 +19,11 @@ let app = express(); app.use(logger("dev")); app.use(express.static(__dirname)); -app.use("/examples", express.static(__dirname + "/../examples")); +app.use("/examples", express.static(`${__dirname}/../examples`)); app.get("/bundle.js", (req, res) => { - let files = glob.sync(__dirname + "/**/*.js", { - ignore: __dirname + "/vendor/**/*" + let files = glob.sync(`${__dirname}/**/*.js`, { + ignore: `${__dirname}/vendor/**/*` }); browserify(files) diff --git a/spec/server b/spec/server index 57cd0d1..23186e8 100755 --- a/spec/server +++ b/spec/server @@ -21,8 +21,8 @@ app.use(logger("dev")); app.use(express.static(__dirname)); app.get("/bundle.js", (req, res) => { - let files = glob.sync(__dirname + "/**/*.js", { - ignore: __dirname + "/vendor/**/*" + let files = glob.sync(`${__dirname}/**/*.js`, { + ignore: `${__dirname}/vendor/**/*` }); browserify(files)