@@ -32,13 +32,13 @@ describeBuilder(buildWebpackBrowser, BROWSER_BUILDER_INFO, (harness) => {
32
32
} ) ;
33
33
34
34
await harness . modifyFile ( 'src/app/app.component.ts' , ( content ) =>
35
- content . replace ( '__STYLE_MARKER__' , '$primary: green ;\\nh1 { color: $primary; }' ) ,
35
+ content . replace ( '__STYLE_MARKER__' , '$primary: indianred ;\\nh1 { color: $primary; }' ) ,
36
36
) ;
37
37
38
38
const { result } = await harness . executeOnce ( ) ;
39
39
40
40
expect ( result ?. success ) . toBe ( true ) ;
41
- harness . expectFile ( 'dist/main.js' ) . content . toContain ( 'color: green ' ) ;
41
+ harness . expectFile ( 'dist/main.js' ) . content . toContain ( 'color: indianred ' ) ;
42
42
} ) ;
43
43
44
44
it ( 'supports Sass inline component styles when set to "sass"' , async ( ) => {
@@ -49,13 +49,13 @@ describeBuilder(buildWebpackBrowser, BROWSER_BUILDER_INFO, (harness) => {
49
49
} ) ;
50
50
51
51
await harness . modifyFile ( 'src/app/app.component.ts' , ( content ) =>
52
- content . replace ( '__STYLE_MARKER__' , '$primary: green \\nh1\\n\\tcolor: $primary' ) ,
52
+ content . replace ( '__STYLE_MARKER__' , '$primary: indianred \\nh1\\n\\tcolor: $primary' ) ,
53
53
) ;
54
54
55
55
const { result } = await harness . executeOnce ( ) ;
56
56
57
57
expect ( result ?. success ) . toBe ( true ) ;
58
- harness . expectFile ( 'dist/main.js' ) . content . toContain ( 'color: green ' ) ;
58
+ harness . expectFile ( 'dist/main.js' ) . content . toContain ( 'color: indianred ' ) ;
59
59
} ) ;
60
60
61
61
it ( 'supports Less inline component styles when set to "less"' , async ( ) => {
@@ -66,13 +66,13 @@ describeBuilder(buildWebpackBrowser, BROWSER_BUILDER_INFO, (harness) => {
66
66
} ) ;
67
67
68
68
await harness . modifyFile ( 'src/app/app.component.ts' , ( content ) =>
69
- content . replace ( '__STYLE_MARKER__' , '@primary: green ;\\nh1 { color: @primary; }' ) ,
69
+ content . replace ( '__STYLE_MARKER__' , '@primary: indianred ;\\nh1 { color: @primary; }' ) ,
70
70
) ;
71
71
72
72
const { result } = await harness . executeOnce ( ) ;
73
73
74
74
expect ( result ?. success ) . toBe ( true ) ;
75
- harness . expectFile ( 'dist/main.js' ) . content . toContain ( 'color: green ' ) ;
75
+ harness . expectFile ( 'dist/main.js' ) . content . toContain ( 'color: indianred ' ) ;
76
76
} ) ;
77
77
78
78
it ( 'updates produced stylesheet in watch mode' , async ( ) => {
@@ -85,7 +85,7 @@ describeBuilder(buildWebpackBrowser, BROWSER_BUILDER_INFO, (harness) => {
85
85
} ) ;
86
86
87
87
await harness . modifyFile ( 'src/app/app.component.ts' , ( content ) =>
88
- content . replace ( '__STYLE_MARKER__' , '$primary: green ;\\nh1 { color: $primary; }' ) ,
88
+ content . replace ( '__STYLE_MARKER__' , '$primary: indianred ;\\nh1 { color: $primary; }' ) ,
89
89
) ;
90
90
91
91
const buildCount = await harness
@@ -97,18 +97,18 @@ describeBuilder(buildWebpackBrowser, BROWSER_BUILDER_INFO, (harness) => {
97
97
98
98
switch ( index ) {
99
99
case 0 :
100
- harness . expectFile ( 'dist/main.js' ) . content . toContain ( 'color: green ' ) ;
100
+ harness . expectFile ( 'dist/main.js' ) . content . toContain ( 'color: indianred ' ) ;
101
101
harness . expectFile ( 'dist/main.js' ) . content . not . toContain ( 'color: aqua' ) ;
102
102
103
103
await harness . modifyFile ( 'src/app/app.component.ts' , ( content ) =>
104
104
content . replace (
105
- '$primary: green ;\\nh1 { color: $primary; }' ,
105
+ '$primary: indianred ;\\nh1 { color: $primary; }' ,
106
106
'$primary: aqua;\\nh1 { color: $primary; }' ,
107
107
) ,
108
108
) ;
109
109
break ;
110
110
case 1 :
111
- harness . expectFile ( 'dist/main.js' ) . content . not . toContain ( 'color: green ' ) ;
111
+ harness . expectFile ( 'dist/main.js' ) . content . not . toContain ( 'color: indianred ' ) ;
112
112
harness . expectFile ( 'dist/main.js' ) . content . toContain ( 'color: aqua' ) ;
113
113
114
114
await harness . modifyFile ( 'src/app/app.component.ts' , ( content ) =>
@@ -119,7 +119,7 @@ describeBuilder(buildWebpackBrowser, BROWSER_BUILDER_INFO, (harness) => {
119
119
) ;
120
120
break ;
121
121
case 2 :
122
- harness . expectFile ( 'dist/main.js' ) . content . not . toContain ( 'color: green ' ) ;
122
+ harness . expectFile ( 'dist/main.js' ) . content . not . toContain ( 'color: indianred ' ) ;
123
123
harness . expectFile ( 'dist/main.js' ) . content . not . toContain ( 'color: aqua' ) ;
124
124
harness . expectFile ( 'dist/main.js' ) . content . toContain ( 'color: blue' ) ;
125
125
break ;
0 commit comments