@@ -10,18 +10,18 @@ import {
1010
1111test . runIf ( isBuild ) ( 'rebuilds styles only entry on change' , async ( ) => {
1212 expect ( findAssetFile ( / s t y l e - o n l y - e n t r y - .+ \. c s s / , 'watch' ) ) . toContain (
13- '#ff69b4 ' ,
13+ 'hotpink ' ,
1414 )
1515 expect ( findAssetFile ( / s t y l e - o n l y - e n t r y - l e g a c y - .+ \. j s / , 'watch' ) ) . toContain (
16- '#ff69b4 ' ,
16+ 'hotpink ' ,
1717 )
1818 expect ( findAssetFile ( / p o l y f i l l s - l e g a c y - .+ \. j s / , 'watch' ) ) . toBeTruthy ( )
1919 const numberOfManifestEntries = Object . keys ( readManifest ( 'watch' ) ) . length
2020 expect ( numberOfManifestEntries ) . toBe ( 3 )
2121
2222 editFile (
2323 'style-only-entry.css' ,
24- ( originalContents ) => originalContents . replace ( '#ff69b4 ' , '#ffb6c1 ' ) ,
24+ ( originalContents ) => originalContents . replace ( 'hotpink ' , 'lightpink ' ) ,
2525 true ,
2626 )
2727 await notifyRebuildComplete ( watcher )
@@ -35,13 +35,13 @@ test.runIf(isBuild)('rebuilds styles only entry on change', async () => {
3535 updatedManifest [ 'style-only-entry.css' ] ! . file . substring ( 'assets/' . length ) ,
3636 'watch' ,
3737 )
38- expect ( reRenderedCssFile ) . toContain ( '#ffb6c1 ' )
38+ expect ( reRenderedCssFile ) . toContain ( 'lightpink ' )
3939 const reRenderedCssLegacyFile = findAssetFile (
4040 updatedManifest [ 'style-only-entry-legacy.css' ] ! . file . substring (
4141 'assets/' . length ,
4242 ) ,
4343 'watch' ,
4444 )
45- expect ( reRenderedCssLegacyFile ) . toContain ( '#ffb6c1 ' )
45+ expect ( reRenderedCssLegacyFile ) . toContain ( 'lightpink ' )
4646 expect ( findAssetFile ( / p o l y f i l l s - l e g a c y - .+ \. j s / , 'watch' ) ) . toBeTruthy ( )
4747} )
0 commit comments