@@ -56,19 +56,19 @@ describe('flushChunks() called as pure function', () => {
56
56
/** BABEL VS. WEBPACK FLUSHING */
57
57
58
58
test ( 'flushBabel()' , ( ) => {
59
- const files = flushBabel ( stats , babelFilePaths , rootDir ) /*? */
59
+ const files = flushBabel ( babelFilePaths , stats , rootDir ) /*? */
60
60
const allFiles = stats . chunks [ 0 ] . files . concat ( stats . chunks [ 1 ] . files )
61
61
expect ( files ) . toEqual ( allFiles )
62
62
} )
63
63
64
64
test ( 'flushWebpack()' , ( ) => {
65
- const files = flushWebpack ( stats , webpackModuleIds ) /*? */
65
+ const files = flushWebpack ( webpackModuleIds , stats ) /*? */
66
66
const allFiles = stats . chunks [ 0 ] . files . concat ( stats . chunks [ 1 ] . files )
67
67
expect ( files ) . toEqual ( allFiles )
68
68
} )
69
69
70
70
test ( 'flushBabel() throws with no rootDir argument' , ( ) => {
71
- const flush = ( ) => flushBabel ( stats , babelFilePaths ) /*? */
71
+ const flush = ( ) => flushBabel ( babelFilePaths , stats ) /*? */
72
72
expect ( flush ) . toThrow ( )
73
73
} )
74
74
@@ -94,8 +94,8 @@ test('createFilesByModuleId()', () => {
94
94
95
95
expect ( Object . keys ( filesByPath ) ) . toEqual ( webpackModuleIds )
96
96
97
- expect ( filesByPath [ ' qwer' ] ) . toEqual ( [ '0.js' , '0.no_css.js' , '0.css' ] )
98
- expect ( filesByPath [ ' zxcv' ] ) . toEqual ( [ ] ) // test against arrays of undefined
97
+ expect ( filesByPath . qwer ) . toEqual ( [ '0.js' , '0.no_css.js' , '0.css' ] )
98
+ expect ( filesByPath . zxcv ) . toEqual ( [ ] ) // test against arrays of undefined
99
99
100
100
expect ( filesByPath ) . toMatchSnapshot ( )
101
101
} )
0 commit comments