summaryrefslogtreecommitdiff
path: root/config/karma.config.js
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2019-03-08 10:59:15 -0600
committerMike Greiling <mike@pixelcog.com>2019-03-11 14:16:41 -0500
commitc46b791911ae16f9ce06825c59a0ff93b4e4c789 (patch)
treee58abc15faa0a1a6381d9b3e8aaf4cd2fa625d19 /config/karma.config.js
parentea1ababae2e6a7f4c6fa5f2a3f6b94fcdb3b84bd (diff)
downloadgitlab-ce-c46b791911ae16f9ce06825c59a0ff93b4e4c789.tar.gz
Remove node 6 trailing comma support
This removes trailing commas from node scripts which previously omitted them for compatiblity with node 6
Diffstat (limited to 'config/karma.config.js')
-rw-r--r--config/karma.config.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/config/karma.config.js b/config/karma.config.js
index e1d7c30b1c2..b90b20c26da 100644
--- a/config/karma.config.js
+++ b/config/karma.config.js
@@ -26,7 +26,7 @@ webpackConfig.devtool = 'cheap-inline-source-map';
webpackConfig.plugins.push(
new webpack.DefinePlugin({
'process.env.BABEL_ENV': JSON.stringify(process.env.BABEL_ENV || process.env.NODE_ENV || null),
- })
+ }),
);
const specFilters = argumentsParser
@@ -37,7 +37,7 @@ const specFilters = argumentsParser
memo.push(filter, filter.replace(/\/?$/, '/**/*.js'));
return memo;
},
- []
+ [],
)
.parse(process.argv).filterSpec;
@@ -51,7 +51,7 @@ if (specFilters.length) {
root: ROOT_PATH,
matchBase: true,
})
- .filter(path => path.endsWith('spec.js'))
+ .filter(path => path.endsWith('spec.js')),
);
// flatten
@@ -78,8 +78,8 @@ if (specFilters.length) {
new webpack.ContextReplacementPlugin(
/spec[\\\/]javascripts$/,
path.join(ROOT_PATH, 'spec/javascripts'),
- newContext
- )
+ newContext,
+ ),
);
}