mirror of https://github.com/webpack/webpack.git
28 lines
416 B
JavaScript
28 lines
416 B
JavaScript
const createTestCases = require("../_helpers/createTestCases");
|
|
module.exports = createTestCases({
|
|
nothing: {
|
|
usedExports: [],
|
|
expect: {
|
|
"./test": []
|
|
}
|
|
},
|
|
nonEval: {
|
|
usedExports: ["x"],
|
|
expect: {
|
|
"./test": ["a"]
|
|
}
|
|
},
|
|
directEval: {
|
|
usedExports: ["y"],
|
|
expect: {
|
|
"./test": ["a", "b", "c"]
|
|
}
|
|
},
|
|
indirectEval: {
|
|
usedExports: ["z"],
|
|
expect: {
|
|
"./test": ["a", "b", "c"]
|
|
}
|
|
}
|
|
});
|