Fix unit tests for node 0.12

This commit is contained in:
Jan Nicklas 2017-01-04 08:38:08 +01:00
parent d22c23066a
commit ecc0784af5
1 changed files with 1 additions and 1 deletions

View File

@ -755,7 +755,7 @@ describe('HtmlWebpackPlugin', function () {
apply: function (compiler) {
compiler.plugin('compilation', function (compilation) {
compilation.plugin('html-webpack-plugin-alter-asset-tags', function (pluginArgs, callback) {
pluginArgs.body = pluginArgs.body.map(tag => {
pluginArgs.body = pluginArgs.body.map(function (tag) {
if (tag.tagName === 'script') {
tag.attributes.async = true;
}