From a640cd05b39f194b6ad86577baf9543b79cb611e Mon Sep 17 00:00:00 2001 From: Franck Freiburger Date: Wed, 31 Oct 2018 09:28:42 +0100 Subject: [PATCH] - update/enhance the test --- test/configCases/plugins/define-plugin/webpack.config.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/configCases/plugins/define-plugin/webpack.config.js b/test/configCases/plugins/define-plugin/webpack.config.js index 504ab9f0daa..abf094601d7 100644 --- a/test/configCases/plugins/define-plugin/webpack.config.js +++ b/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({ @@ -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; } ) })