diff --git a/test/functional.js b/test/functional.js index f46ec746..570b8585 100644 --- a/test/functional.js +++ b/test/functional.js @@ -2397,7 +2397,7 @@ module.exports = { // and be versioned config.copyFiles({ from: './copy', - to: './[path][name]-[hash].[ext]', + to: './[path][name]-[hash:8].[ext]', pattern: /\.(css|js)$/, }); @@ -2427,21 +2427,20 @@ module.exports = { }); testSetup.runWebpack(config, (webpackAssert) => { - expect(config.outputPath).to.be.a.directory() - .with.files([ - 'entrypoints.json', - 'runtime.js', - 'main.js', - 'manifest.json', + webpackAssert.assertDirectoryContents([ + 'entrypoints.json', + 'runtime.js', + 'main.js', + 'manifest.json', - // 1st rule - 'foo-5d76c098640df1edecc7ca66ee62b1ea.css', - 'foo-5d76c098640df1edecc7ca66ee62b1ea.js', + // 1st rule + 'foo-[hash:8].css', + 'foo-[hash:8].js', - // 2nd rule - 'foo.json', - 'foo.png', - ]); + // 2nd rule + 'foo.json', + 'foo.png', + ]); done(); });