Skip to content

Commit 1f5c871

Browse files
committed
added disablecssextration tests to match new optional param
1 parent f1805df commit 1f5c871

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

test/WebpackConfig.js

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1223,12 +1223,27 @@ describe('WebpackConfig object', () => {
12231223
expect(config.extractCss).to.be.true;
12241224
});
12251225

1226-
it('Calling it disables the CSS extraction', () => {
1226+
it('Calling it with no params disables the CSS extraction', () => {
12271227
const config = createConfig();
12281228
config.disableCssExtraction();
12291229

12301230
expect(config.extractCss).to.be.false;
12311231
});
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+
12321247
});
12331248

12341249
describe('configureFilenames', () => {

0 commit comments

Comments
 (0)