Skip to content

Commit fc9b941

Browse files
committed
tests should not include version number
1 parent 8e490bd commit fc9b941

File tree

4 files changed

+1
-4
lines changed

4 files changed

+1
-4
lines changed

test/Stats.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ describe("Stats", function() {
4747
colors: false
4848
});
4949
(typeof actual).should.be.eql("string");
50-
actual = actual.replace(/[0-9]+(\s?ms)/g, "X$1").replace(/\r/g, "");
50+
actual = actual.replace(/Version:.+\n/, "").replace(/[0-9]+(\s?ms)/g, "X$1").replace(/\r/g, "");
5151
var expected = fs.readFileSync(path.join(base, testName, "expected.txt"), "utf-8").replace(/\r/g, "");
5252
if(actual !== expected) {
5353
fs.writeFileSync(path.join(base, testName, "actual.txt"), actual, "utf-8");

test/fixtures/stats/chunks/expected.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
Hash: 80887ec4f74063cf6be8
2-
Version: webpack 1.8.9
32
Time: Xms
43
Asset Size Chunks Chunk Names
54
bundle.js 3.85 kB 0 [emitted] main

test/fixtures/stats/simple-more-info/expected.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
Hash: 43e2ad3ef030cc5c6c92
2-
Version: webpack 1.8.9
32
Time: Xms
43
Asset Size Chunks Chunk Names
54
bundle.js 1.41 kB 0 [emitted] main

test/fixtures/stats/simple/expected.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
Hash: 43e2ad3ef030cc5c6c92
2-
Version: webpack 1.8.9
32
Time: Xms
43
Asset Size Chunks Chunk Names
54
bundle.js 1.41 kB 0 [emitted] main

0 commit comments

Comments
 (0)