Skip to content

Commit 1a7fff8

Browse files
committed
Fix test after rebase
1 parent 3e0baf8 commit 1a7fff8

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

test/Stats.unittest.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
require("should");
55
const Stats = require("../lib/Stats");
6-
const packageJson = require("../package.json")
6+
const packageJson = require("../package.json");
77

88
describe("Stats", () => {
99
describe("Error Handling", () => {
@@ -113,7 +113,7 @@ describe("Stats", () => {
113113
errors: [],
114114
warnings: [],
115115
assets: [],
116-
entrypoints: {},
116+
entrypoints: new Map(),
117117
chunks: [],
118118
modules: [],
119119
children: [],
@@ -123,6 +123,9 @@ describe("Stats", () => {
123123
path: "/"
124124
},
125125
getPublicPath: () => "path"
126+
},
127+
compiler: {
128+
context: ""
126129
}
127130
});
128131
const result = mockStats.toJson();
@@ -132,9 +135,9 @@ describe("Stats", () => {
132135
children: [],
133136
chunks: [],
134137
entrypoints: {},
135-
errors: [],
136138
filteredAssets: 0,
137139
filteredModules: 0,
140+
errors: [],
138141
hash: "1234",
139142
modules: [],
140143
outputPath: "/",

0 commit comments

Comments
 (0)