File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 33
44require ( "should" ) ;
55const Stats = require ( "../lib/Stats" ) ;
6- const packageJson = require ( "../package.json" )
6+ const packageJson = require ( "../package.json" ) ;
77
88describe ( "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 : "/" ,
You can’t perform that action at this time.
0 commit comments