File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ describe('Plugin', function () {
7575 const bundleGroup = chartData . find ( group => group . label === 'bundle.js' ) ;
7676
7777 expect ( bundleGroup . groups ) .
78- toMatch ( [
78+ toEqual ( [
7979 {
8080 label : 'src' ,
8181 path : './src' ,
@@ -109,7 +109,7 @@ describe('Plugin', function () {
109109
110110 const chartData = await getChartDataFromReport ( ) ;
111111 expect ( chartData . map ( i => i . label ) )
112- . toMatch ( [ 'bundle.js' ] ) ;
112+ . toEqual ( [ 'bundle.js' ] ) ;
113113 } ) ;
114114 } ) ;
115115 } ) ;
@@ -203,8 +203,8 @@ describe('Plugin', function () {
203203 gzipSize
204204 } = { gzipSize : 770 , ...opts } ;
205205
206- expect ( fs . existsSync ( `${ __dirname } /output/${ bundleFilename } ` ) , 'bundle file missing' ) . toBe ( true ) ;
207- expect ( fs . existsSync ( `${ __dirname } /output/${ reportFilename } ` ) , 'report file missing' ) . toBe ( true ) ;
206+ expect ( fs . existsSync ( `${ __dirname } /output/${ bundleFilename } ` ) ) . toBe ( true ) ;
207+ expect ( fs . existsSync ( `${ __dirname } /output/${ reportFilename } ` ) ) . toBe ( true ) ;
208208 const chartData = await getChartDataFromReport ( reportFilename ) ;
209209 expect ( chartData [ 0 ] ) . toMatch ( {
210210 label : bundleLabel ,
You can’t perform that action at this time.
0 commit comments