File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -1223,12 +1223,27 @@ describe('WebpackConfig object', () => {
1223
1223
expect ( config . extractCss ) . to . be . true ;
1224
1224
} ) ;
1225
1225
1226
- it ( 'Calling it disables the CSS extraction' , ( ) => {
1226
+ it ( 'Calling it with no params disables the CSS extraction' , ( ) => {
1227
1227
const config = createConfig ( ) ;
1228
1228
config . disableCssExtraction ( ) ;
1229
1229
1230
1230
expect ( config . extractCss ) . to . be . false ;
1231
1231
} ) ;
1232
+
1233
+ it ( 'Calling it with boolean set to true disables CSS extraction' , ( ) => {
1234
+ const config = createConfig ( ) ;
1235
+ config . disableCssExtraction ( true ) ;
1236
+
1237
+ expect ( config . extractCss ) . to . be . false ;
1238
+ } ) ;
1239
+
1240
+ it ( 'Calling it with boolean set to false enables CSS extraction' , ( ) => {
1241
+ const config = createConfig ( ) ;
1242
+ config . disableCssExtraction ( false ) ;
1243
+
1244
+ expect ( config . extractCss ) . to . be . true ;
1245
+ } ) ;
1246
+
1232
1247
} ) ;
1233
1248
1234
1249
describe ( 'configureFilenames' , ( ) => {
You can’t perform that action at this time.
0 commit comments