@@ -10,18 +10,18 @@ import {
10
10
11
11
test . runIf ( isBuild ) ( 'rebuilds styles only entry on change' , async ( ) => {
12
12
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 ' ,
14
14
)
15
15
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 ' ,
17
17
)
18
18
expect ( findAssetFile ( / p o l y f i l l s - l e g a c y - .+ \. j s / , 'watch' ) ) . toBeTruthy ( )
19
19
const numberOfManifestEntries = Object . keys ( readManifest ( 'watch' ) ) . length
20
20
expect ( numberOfManifestEntries ) . toBe ( 3 )
21
21
22
22
editFile (
23
23
'style-only-entry.css' ,
24
- ( originalContents ) => originalContents . replace ( '#ff69b4 ' , '#ffb6c1 ' ) ,
24
+ ( originalContents ) => originalContents . replace ( 'hotpink ' , 'lightpink ' ) ,
25
25
true ,
26
26
)
27
27
await notifyRebuildComplete ( watcher )
@@ -35,13 +35,13 @@ test.runIf(isBuild)('rebuilds styles only entry on change', async () => {
35
35
updatedManifest [ 'style-only-entry.css' ] ! . file . substring ( 'assets/' . length ) ,
36
36
'watch' ,
37
37
)
38
- expect ( reRenderedCssFile ) . toContain ( '#ffb6c1 ' )
38
+ expect ( reRenderedCssFile ) . toContain ( 'lightpink ' )
39
39
const reRenderedCssLegacyFile = findAssetFile (
40
40
updatedManifest [ 'style-only-entry-legacy.css' ] ! . file . substring (
41
41
'assets/' . length ,
42
42
) ,
43
43
'watch' ,
44
44
)
45
- expect ( reRenderedCssLegacyFile ) . toContain ( '#ffb6c1 ' )
45
+ expect ( reRenderedCssLegacyFile ) . toContain ( 'lightpink ' )
46
46
expect ( findAssetFile ( / p o l y f i l l s - l e g a c y - .+ \. j s / , 'watch' ) ) . toBeTruthy ( )
47
47
} )
0 commit comments