Skip to content

Commit 259c346

Browse files
committed
fixed tests
1 parent 45e9c31 commit 259c346

11 files changed

Lines changed: 14 additions & 12 deletions

File tree

test/Compiler.test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ var WebpackOptionsDefaulter = require("../lib/WebpackOptionsDefaulter");
88

99
describe("Compiler", function() {
1010
function compile(entry, options, callback) {
11+
var noOutputPath = !options.output || !options.output.path;
1112
new WebpackOptionsDefaulter().process(options);
1213
options.entry = entry;
1314
options.context = path.join(__dirname, "fixtures");
15+
if(noOutputPath) options.output.path = "";
1416
options.output.pathinfo = true;
1517
var logs = {
1618
mkdirp: [],

test/statsCases/chunks/expected.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Hash: 27235b4ca867bdeff48f
1+
Hash: 9901f8eb4722ffae8b0a
22
Time: Xms
33
Asset Size Chunks Chunk Names
44
bundle.js 4.54 kB 0 [emitted] main

test/statsCases/color-disabled/expected.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Hash: a28a23f40893dddd7764
1+
Hash: 89a3f708bb368b935156
22
Time: Xms
33
Asset Size Chunks Chunk Names
44
main.js 1.53 kB 0 [emitted] main

test/statsCases/color-enabled-custom/expected.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Hash: <CLR=BOLD>a28a23f40893dddd7764</CLR>
1+
Hash: <CLR=BOLD>89a3f708bb368b935156</CLR>
22
Time: <CLR=BOLD>X</CLR>ms
33
<CLR=BOLD>Asset</CLR> <CLR=BOLD>Size</CLR> <CLR=BOLD>Chunks</CLR> <CLR=39,BOLD><CLR=22> <CLR=BOLD>Chunk Names</CLR>
44
<CLR=32>main.js</CLR> 1.53 kB <CLR=BOLD>0</CLR> <CLR=32>[emitted]</CLR> main

test/statsCases/color-enabled/expected.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Hash: <CLR=BOLD>a28a23f40893dddd7764</CLR>
1+
Hash: <CLR=BOLD>89a3f708bb368b935156</CLR>
22
Time: <CLR=BOLD>X</CLR>ms
33
<CLR=BOLD>Asset</CLR> <CLR=BOLD>Size</CLR> <CLR=BOLD>Chunks</CLR> <CLR=39,BOLD><CLR=22> <CLR=BOLD>Chunk Names</CLR>
44
<CLR=32,BOLD>main.js</CLR> 1.53 kB <CLR=BOLD>0</CLR> <CLR=32,BOLD>[emitted]</CLR> main

test/statsCases/define-plugin/expected.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
Hash: c19ce31d1b926d2c50dee65df1199ba8f15ef285
1+
Hash: 8a2011958d63fbea77abc918106a2ea28c36ee7b
22
Child
3-
Hash: c19ce31d1b926d2c50de
3+
Hash: 8a2011958d63fbea77ab
44
Time: Xms
55
Asset Size Chunks Chunk Names
66
main.js 1.57 kB 0 [emitted] main
77
chunk {0} main.js (main) 24 bytes [rendered]
88
[0] (webpack)/test/statsCases/define-plugin/index.js 24 bytes {0} [built]
99
Child
10-
Hash: e65df1199ba8f15ef285
10+
Hash: c918106a2ea28c36ee7b
1111
Time: Xms
1212
Asset Size Chunks Chunk Names
1313
main.js 1.57 kB 0 [emitted] main

test/statsCases/external/expected.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Hash: b47623b7e530ed8ea3e3
1+
Hash: d7bbdf6d1e4793d4ece2
22
Time: Xms
33
Asset Size Chunks Chunk Names
44
main.js 1.66 kB 0 [emitted] main

test/statsCases/preset-normal/expected.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Hash: 28f1432535bf71216689
1+
Hash: b3eaa29c0fa9e96a0ba5
22
Time: Xms
33
chunk {0} main.js (main) 73 bytes [rendered]
44
chunk {1} 1.js 54 bytes {0} [rendered]

test/statsCases/preset-verbose/expected.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Hash: 28f1432535bf71216689
1+
Hash: b3eaa29c0fa9e96a0ba5
22
Time: Xms
33
Asset Size Chunks Chunk Names
44
main.js 4.53 kB 0 [emitted] main

test/statsCases/simple-more-info/expected.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Hash: baefba5235250d2f6688
1+
Hash: 9acb8055473f12209262
22
Time: Xms
33
Asset Size Chunks Chunk Names
44
bundle.js 1.53 kB 0 [emitted] main

0 commit comments

Comments
 (0)