Skip to content

Commit 69567a1

Browse files
committed
update test case to reflect change
1 parent f026310 commit 69567a1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

test/configCases/records/stable-sort/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ it("sorts the usedIds array to prevent churn", function() {
1010
var fs = require("fs");
1111
var path = require("path");
1212
var records = JSON.parse(fs.readFileSync(path.join(__dirname, "records.json"), "utf-8"));
13-
expect(records.chunks.usedIds).toEqual([0, "main", "split"]);
13+
expect(records.chunks.usedIds).toEqual([0, 1, 2]);
1414
});

test/configCases/records/stable-sort/webpack.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ module.exports = {
77
__dirname,
88
"../../../js/config/records/stable-sort/records.json"
99
),
10+
optimization: {
11+
namedChunks: false
12+
},
1013
target: "node",
1114
node: {
1215
__dirname: false

0 commit comments

Comments
 (0)