this should be filtered out
diff --git a/test/red/nodes/resources/TestNodeModule/node_modules/TestNodeModule/TestNodeModule2.js b/test/red/nodes/resources/TestNodeModule/node_modules/TestNodeModule/TestNodeModule2.js new file mode 100644 index 000000000..d359fb3f2 --- /dev/null +++ b/test/red/nodes/resources/TestNodeModule/node_modules/TestNodeModule/TestNodeModule2.js @@ -0,0 +1,4 @@ +// A test node that exports a function +module.exports = function(RED) { + throw new Error("fail to load"); +} diff --git a/test/red/nodes/resources/TestNodeModule/node_modules/TestNodeModule/package.json b/test/red/nodes/resources/TestNodeModule/node_modules/TestNodeModule/package.json index da483f645..8eba5b04b 100644 --- a/test/red/nodes/resources/TestNodeModule/node_modules/TestNodeModule/package.json +++ b/test/red/nodes/resources/TestNodeModule/node_modules/TestNodeModule/package.json @@ -4,7 +4,8 @@ "description" : "A test node module", "node-red" : { "nodes": { - "TestNodeMod1": "TestNodeModule.js" + "TestNodeMod1": "TestNodeModule.js", + "TestNodeMod2": "TestNodeModule2.js" } } }