From 1a7fff843da99a5db3c52ce9d5fe760ccb49a31c Mon Sep 17 00:00:00 2001 From: Francis John Date: Wed, 31 Jan 2018 17:23:26 -0800 Subject: [PATCH] Fix test after rebase --- test/Stats.unittest.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test/Stats.unittest.js b/test/Stats.unittest.js index 29d1bf382..e216de833 100644 --- a/test/Stats.unittest.js +++ b/test/Stats.unittest.js @@ -3,7 +3,7 @@ require("should"); const Stats = require("../lib/Stats"); -const packageJson = require("../package.json") +const packageJson = require("../package.json"); describe("Stats", () => { describe("Error Handling", () => { @@ -113,7 +113,7 @@ describe("Stats", () => { errors: [], warnings: [], assets: [], - entrypoints: {}, + entrypoints: new Map(), chunks: [], modules: [], children: [], @@ -123,6 +123,9 @@ describe("Stats", () => { path: "/" }, getPublicPath: () => "path" + }, + compiler: { + context: "" } }); const result = mockStats.toJson(); @@ -132,9 +135,9 @@ describe("Stats", () => { children: [], chunks: [], entrypoints: {}, - errors: [], filteredAssets: 0, filteredModules: 0, + errors: [], hash: "1234", modules: [], outputPath: "/",