@@ -22,10 +22,10 @@ describe('theme generate import-map', () => {
2222
2323 it ( 'generates empty import map when no JS files exist' , async ( ) => {
2424 await runCommand ( [ 'theme:generate:import-map' , testThemePath ] )
25-
26- const importMapPath = path . join ( testThemePath , 'snippets' , 'import-map.liquid' )
25+
26+ const importMapPath = path . join ( testThemePath , 'snippets' , 'head. import-map.liquid' )
2727 const content = fs . readFileSync ( importMapPath , 'utf8' )
28-
28+
2929 const jsonContent = extractImportMapJson ( content )
3030 expect ( jsonContent ) . to . deep . equal ( {
3131 imports : { }
@@ -36,12 +36,12 @@ describe('theme generate import-map', () => {
3636 const assetsPath = path . join ( testThemePath , 'assets' )
3737 fs . writeFileSync ( path . join ( assetsPath , 'main.js' ) , '' )
3838 fs . writeFileSync ( path . join ( assetsPath , 'utils.js' ) , '' )
39-
39+
4040 await runCommand ( [ 'theme:generate:import-map' , testThemePath ] )
41-
42- const importMapPath = path . join ( testThemePath , 'snippets' , 'import-map.liquid' )
41+
42+ const importMapPath = path . join ( testThemePath , 'snippets' , 'head. import-map.liquid' )
4343 const content = fs . readFileSync ( importMapPath , 'utf8' )
44-
44+
4545 const jsonContent = extractImportMapJson ( content )
4646 expect ( jsonContent ) . to . deep . equal ( {
4747 imports : {
@@ -54,12 +54,12 @@ describe('theme generate import-map', () => {
5454 it ( 'does not include .min in the entry key' , async ( ) => {
5555 const assetsPath = path . join ( testThemePath , 'assets' )
5656 fs . writeFileSync ( path . join ( assetsPath , 'component.min.js' ) , '' )
57-
57+
5858 await runCommand ( [ 'theme:generate:import-map' , testThemePath ] )
59-
60- const importMapPath = path . join ( testThemePath , 'snippets' , 'import-map.liquid' )
59+
60+ const importMapPath = path . join ( testThemePath , 'snippets' , 'head. import-map.liquid' )
6161 const content = fs . readFileSync ( importMapPath , 'utf8' )
62-
62+
6363 const jsonContent = extractImportMapJson ( content )
6464 expect ( jsonContent ) . to . deep . equal ( {
6565 imports : {
@@ -90,12 +90,12 @@ describe('theme generate import-map', () => {
9090 it ( 'updates existing import map' , async ( ) => {
9191 const assetsPath = path . join ( testThemePath , 'assets' )
9292 fs . writeFileSync ( path . join ( assetsPath , 'main.js' ) , '' )
93- const importMapPath = path . join ( testThemePath , 'snippets' , 'import-map.liquid' )
93+ const importMapPath = path . join ( testThemePath , 'snippets' , 'head. import-map.liquid' )
9494 const initialContent = `<script type="importmap">\n{\n "imports": {}\n}\n</script>`
9595 fs . writeFileSync ( importMapPath , initialContent )
9696
9797 await runCommand ( [ 'theme:generate:import-map' , testThemePath ] )
98-
98+
9999 const content = fs . readFileSync ( importMapPath , 'utf8' )
100100 const jsonContent = extractImportMapJson ( content )
101101 expect ( jsonContent ) . to . deep . equal ( {
0 commit comments