Skip to content

Commit c1c13f6

Browse files
faceyspaceysokra
authored andcommitted
fix($chore): put back TestCases.test.js to original
1 parent 8bca2dc commit c1c13f6

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

‎test/TestCases.test.js‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,15 @@ const webpack = require("../lib/webpack");
1414
describe("TestCases", () => {
1515
const casesPath = path.join(__dirname, "cases");
1616
let categories = fs.readdirSync(casesPath);
17-
categories = categories.filter(f => f.indexOf("chunks") > -1).map((cat) => {
17+
categories = categories.map((cat) => {
1818
return {
1919
name: cat,
20-
tests: fs.readdirSync(path.join(casesPath, cat)).filter((folder) => folder.indexOf("_") < 0).filter(f => f.indexOf("inline-options") > -1)
20+
tests: fs.readdirSync(path.join(casesPath, cat)).filter((folder) => folder.indexOf("_") < 0)
2121
};
2222
});
2323
[{
2424
name: "normal"
25-
},
26-
{
25+
}, {
2726
name: "concat",
2827
plugins: [
2928
new webpack.optimize.ModuleConcatenationPlugin()
@@ -102,8 +101,7 @@ describe("TestCases", () => {
102101
new webpack.NamedModulesPlugin(),
103102
new webpack.NamedChunksPlugin()
104103
]
105-
}
106-
].forEach((config) => {
104+
}].forEach((config) => {
107105
describe(config.name, () => {
108106
categories.forEach((category) => {
109107
describe(category.name, function() {

0 commit comments

Comments
 (0)