mirror of https://github.com/webpack/webpack.git
46 lines
635 B
JavaScript
46 lines
635 B
JavaScript
|
|
const createTestCases = require("../_helpers/createTestCases");
|
||
|
|
module.exports = createTestCases({
|
||
|
|
nothing: {
|
||
|
|
usedExports: [],
|
||
|
|
expect: {
|
||
|
|
any: []
|
||
|
|
}
|
||
|
|
},
|
||
|
|
exp1: {
|
||
|
|
usedExports: ["exp1"],
|
||
|
|
expect: {
|
||
|
|
any: ["im1"]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
exp2: {
|
||
|
|
usedExports: ["exp2"],
|
||
|
|
expect: {
|
||
|
|
any: ["im2"]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
exp3: {
|
||
|
|
usedExports: ["exp3"],
|
||
|
|
expect: {
|
||
|
|
any: ["im3"]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
exp4: {
|
||
|
|
usedExports: ["exp4"],
|
||
|
|
expect: {
|
||
|
|
any: ["im2"]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
expCls: {
|
||
|
|
usedExports: ["expCls"],
|
||
|
|
expect: {
|
||
|
|
any: ["im1"]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
all: {
|
||
|
|
usedExports: ["exp1", "exp2", "exp3", "exp4", "expCls"],
|
||
|
|
expect: {
|
||
|
|
any: ["im1", "im2", "im3"]
|
||
|
|
}
|
||
|
|
}
|
||
|
|
});
|