Skip to content

Commit bbf0e7b

Browse files
committed
chore: remove unit test config defaults
1 parent 90ef5df commit bbf0e7b

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

test/exportType.test.js

+2-7
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,7 @@ describe("'exportType' option", () => {
7272
it("should work with 'string' value and CSS modules", async () => {
7373
const compiler = getCompiler("./basic-string-css-modules.js", {
7474
exportType: "string",
75-
modules: {
76-
exportLocalsConvention: "camelCaseOnly",
77-
},
75+
modules: true,
7876
});
7977
const stats = await compile(compiler);
8078

@@ -187,9 +185,7 @@ describe("'exportType' option", () => {
187185
"./modules/composes/composes-css-style-sheet.js",
188186
{
189187
exportType: "css-style-sheet",
190-
modules: {
191-
exportLocalsConvention: "camelCaseOnly",
192-
},
188+
modules: true,
193189
}
194190
);
195191
const stats = await compile(compiler);
@@ -210,7 +206,6 @@ describe("'exportType' option", () => {
210206
{
211207
exportType: "css-style-sheet",
212208
modules: {
213-
exportLocalsConvention: "camelCaseOnly",
214209
exportOnlyLocals: true,
215210
},
216211
}

test/modules-option.test.js

-7
Original file line numberDiff line numberDiff line change
@@ -1566,7 +1566,6 @@ describe('"modules" option', () => {
15661566
it('should work with the "namedExport" option', async () => {
15671567
const compiler = getCompiler("./modules/namedExport/base/index.js", {
15681568
modules: {
1569-
exportLocalsConvention: "camelCaseOnly",
15701569
namedExport: true,
15711570
},
15721571
});
@@ -1606,7 +1605,6 @@ describe('"modules" option', () => {
16061605
const compiler = getCompiler("./modules/namedExport/nested/index.js", {
16071606
esModule: true,
16081607
modules: {
1609-
exportLocalsConvention: "camelCaseOnly",
16101608
namedExport: true,
16111609
},
16121610
});
@@ -1626,7 +1624,6 @@ describe('"modules" option', () => {
16261624
const compiler = getCompiler("./modules/namedExport/template/index.js", {
16271625
esModule: true,
16281626
modules: {
1629-
exportLocalsConvention: "camelCaseOnly",
16301627
localIdentName: "[local]",
16311628
namedExport: true,
16321629
},
@@ -1824,7 +1821,6 @@ describe('"modules" option', () => {
18241821
mode: "local",
18251822
localIdentName: "_[local]",
18261823
namedExport: true,
1827-
exportLocalsConvention: "camelCaseOnly",
18281824
exportOnlyLocals: true,
18291825
},
18301826
esModule: true,
@@ -1862,7 +1858,6 @@ describe('"modules" option', () => {
18621858
it('should work with "url" and "namedExport"', async () => {
18631859
const compiler = getCompiler("./modules/url/source.js", {
18641860
modules: {
1865-
exportLocalsConvention: "camelCaseOnly",
18661861
namedExport: true,
18671862
},
18681863
});
@@ -1883,7 +1878,6 @@ describe('"modules" option', () => {
18831878
"./modules/url/source.js",
18841879
{
18851880
modules: {
1886-
exportLocalsConvention: "camelCaseOnly",
18871881
namedExport: true,
18881882
},
18891883
},
@@ -2060,7 +2054,6 @@ describe('"modules" option', () => {
20602054
modules: {
20612055
mode: "icss",
20622056
namedExport: true,
2063-
exportLocalsConvention: "camelCaseOnly",
20642057
},
20652058
}
20662059
);

0 commit comments

Comments
 (0)