@@ -27,13 +27,13 @@ describe('ChunkExtrator', () => {
2727 } )
2828
2929 it ( 'should use publicPath from ChunkExtractor options' , ( ) => {
30- const extractor = new ChunkExtractor ( {
30+ const testExtractor = new ChunkExtractor ( {
3131 stats,
3232 publicPath : 'https://cdn.example.org/v1.1.0/' ,
3333 outputPath : path . resolve ( __dirname , '../__fixtures__' ) ,
3434 } )
3535
36- expect ( extractor . resolvePublicUrl ( 'main.js' ) ) . toEqual (
36+ expect ( testExtractor . resolvePublicUrl ( 'main.js' ) ) . toEqual (
3737 'https://cdn.example.org/v1.1.0/main.js' ,
3838 )
3939 } )
@@ -72,12 +72,12 @@ describe('ChunkExtrator', () => {
7272 } )
7373
7474 it ( 'should return main script tag without chunk with namespaced required chunks id' , ( ) => {
75- const extractor = new ChunkExtractor ( {
75+ const testExtractor = new ChunkExtractor ( {
7676 namespace : 'testapp' ,
7777 stats,
7878 outputPath : path . resolve ( __dirname , '../__fixtures__' ) ,
7979 } )
80- expect ( extractor . getScriptTags ( ) ) . toMatchInlineSnapshot ( `
80+ expect ( testExtractor . getScriptTags ( ) ) . toMatchInlineSnapshot ( `
8181 "<script id=\\"testapp__LOADABLE_REQUIRED_CHUNKS__\\" type=\\"application/json\\">[]</script><script id=\\"testapp__LOADABLE_REQUIRED_CHUNKS___ext\\" type=\\"application/json\\">{\\"namedChunks\\":[]}</script>
8282 <script async data-chunk=\\"main\\" src=\\"/dist/node/main.js\\"></script>"
8383 ` )
@@ -128,12 +128,12 @@ describe('ChunkExtrator', () => {
128128
129129 describe ( '#getScriptElements' , ( ) => {
130130 it ( 'should return main script tag without chunk with namespaced id for loadable chunks' , ( ) => {
131- const extractor = new ChunkExtractor ( {
131+ const testExtractor = new ChunkExtractor ( {
132132 namespace : 'testapp' ,
133133 stats,
134134 outputPath : path . resolve ( __dirname , '../__fixtures__' ) ,
135135 } )
136- expect ( extractor . getScriptElements ( ) ) . toMatchInlineSnapshot ( `
136+ expect ( testExtractor . getScriptElements ( ) ) . toMatchInlineSnapshot ( `
137137 Array [
138138 <script
139139 dangerouslySetInnerHTML={
@@ -351,13 +351,13 @@ describe('ChunkExtrator', () => {
351351 } )
352352
353353 it ( 'should use publicPath from options' , ( ) => {
354- const extractor = new ChunkExtractor ( {
354+ const testExtractor = new ChunkExtractor ( {
355355 stats,
356356 publicPath : 'https://cdn.example.org/v1.1.0/' ,
357357 outputPath : path . resolve ( __dirname , '../__fixtures__' ) ,
358358 } )
359359
360- expect ( extractor . getScriptElements ( ) ) . toMatchInlineSnapshot ( `
360+ expect ( testExtractor . getScriptElements ( ) ) . toMatchInlineSnapshot ( `
361361 Array [
362362 <script
363363 dangerouslySetInnerHTML={
0 commit comments