Fix test after rebase

This commit is contained in:
Francis John 2018-01-31 17:23:26 -08:00
parent 3e0baf8303
commit 1a7fff843d
1 changed files with 6 additions and 3 deletions

View File

@ -3,7 +3,7 @@
require("should"); require("should");
const Stats = require("../lib/Stats"); const Stats = require("../lib/Stats");
const packageJson = require("../package.json") const packageJson = require("../package.json");
describe("Stats", () => { describe("Stats", () => {
describe("Error Handling", () => { describe("Error Handling", () => {
@ -113,7 +113,7 @@ describe("Stats", () => {
errors: [], errors: [],
warnings: [], warnings: [],
assets: [], assets: [],
entrypoints: {}, entrypoints: new Map(),
chunks: [], chunks: [],
modules: [], modules: [],
children: [], children: [],
@ -123,6 +123,9 @@ describe("Stats", () => {
path: "/" path: "/"
}, },
getPublicPath: () => "path" getPublicPath: () => "path"
},
compiler: {
context: ""
} }
}); });
const result = mockStats.toJson(); const result = mockStats.toJson();
@ -132,9 +135,9 @@ describe("Stats", () => {
children: [], children: [],
chunks: [], chunks: [],
entrypoints: {}, entrypoints: {},
errors: [],
filteredAssets: 0, filteredAssets: 0,
filteredModules: 0, filteredModules: 0,
errors: [],
hash: "1234", hash: "1234",
modules: [], modules: [],
outputPath: "/", outputPath: "/",