Skip to content

Commit

Permalink
- update/enhance the test
Browse files Browse the repository at this point in the history
  • Loading branch information
FranckFreiburger committed Oct 31, 2018
1 parent 7dc8e51 commit a640cd0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/configCases/plugins/define-plugin/webpack.config.js
@@ -1,4 +1,5 @@
var DefinePlugin = require("../../../../lib/DefinePlugin");
const Module = require("../../../../lib/Module");
module.exports = {
plugins: [
new DefinePlugin({
Expand Down Expand Up @@ -28,8 +29,8 @@ module.exports = {
wurst: "suppe",
suppe: "wurst",
RUNTIMEVALUE_CALLBACK_ARGUMENT_IS_A_MODULE: DefinePlugin.runtimeValue(
function(currentModule) {
return typeof currentModule === "object";
function({ module }) {
return module instanceof Module;
}
)
})
Expand Down

0 comments on commit a640cd0

Please sign in to comment.