Skip to content

Commit 857f980

Browse files
committed
improve existing test to test webpack#3946 and webpack#3949
1 parent 4957a0b commit 857f980

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

test/binCases/stats/single-config/test.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ module.exports = function testAssertions(code, stdout, stderr) {
77
stdout[0].should.containEql("Hash: ");
88
stdout[1].should.containEql("Version: ");
99
stdout[2].should.containEql("Time: ");
10-
stdout[4].should.containEql("null.js");
11-
stdout[5].should.containEql("./index.js");
12-
stdout[5].should.containEql("[built]");
10+
stdout[4].should.containEql("\u001b[1m\u001b[32mnull.js\u001b[39m\u001b[22m");
11+
stdout[5].should.not.containEql("./index.js");
12+
stdout[5].should.not.containEql("[built]");
13+
stdout[5].should.containEql("1 hidden module");
1314

1415
stderr.should.be.empty();
1516
};

test/binCases/stats/single-config/webpack.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ module.exports = {
55
stats: {
66
assets: true,
77
colors: true,
8-
chunks: true
8+
chunks: true,
9+
maxModules: 0
910
}
1011
};

0 commit comments

Comments
 (0)