mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Add missing test resources
This commit is contained in:
parent
11d87205d7
commit
99af79fcf3
1
test/red/runtime-registry/resources/local/TestNodeModule/node_modules/EmptyModule/file.txt
generated
vendored
Normal file
1
test/red/runtime-registry/resources/local/TestNodeModule/node_modules/EmptyModule/file.txt
generated
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
This file exists just to ensure the parent directory is in the repository.
|
5
test/red/runtime-registry/resources/local/TestNodeModule/node_modules/TestNodeModule/TestNodeModule.html
generated
vendored
Normal file
5
test/red/runtime-registry/resources/local/TestNodeModule/node_modules/TestNodeModule/TestNodeModule.html
generated
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<script type="text/x-red" data-template-name="test-node-mod-1"></script>
|
||||||
|
<script type="text/x-red" data-help-name="test-node-mod-1"></script>
|
||||||
|
<script type="text/javascript">RED.nodes.registerType('test-node-mod-1',{});</script>
|
||||||
|
<style></style>
|
||||||
|
<p>this should be filtered out</p>
|
5
test/red/runtime-registry/resources/local/TestNodeModule/node_modules/TestNodeModule/TestNodeModule.js
generated
vendored
Normal file
5
test/red/runtime-registry/resources/local/TestNodeModule/node_modules/TestNodeModule/TestNodeModule.js
generated
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
// A test node that exports a function
|
||||||
|
module.exports = function(RED) {
|
||||||
|
function TestNode(n) {}
|
||||||
|
RED.nodes.registerType("test-node-mod-1",TestNode);
|
||||||
|
}
|
5
test/red/runtime-registry/resources/local/TestNodeModule/node_modules/TestNodeModule/TestNodeModule2.html
generated
vendored
Normal file
5
test/red/runtime-registry/resources/local/TestNodeModule/node_modules/TestNodeModule/TestNodeModule2.html
generated
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<script type="text/x-red" data-template-name="test-node-mod-2"></script>
|
||||||
|
<script type="text/x-red" data-help-name="test-node-mod-2"></script>
|
||||||
|
<script type="text/javascript">RED.nodes.registerType('test-node-mod-2',{});</script>
|
||||||
|
<style></style>
|
||||||
|
<p>this should be filtered out</p>
|
4
test/red/runtime-registry/resources/local/TestNodeModule/node_modules/TestNodeModule/TestNodeModule2.js
generated
vendored
Normal file
4
test/red/runtime-registry/resources/local/TestNodeModule/node_modules/TestNodeModule/TestNodeModule2.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
// A test node that exports a function
|
||||||
|
module.exports = function(RED) {
|
||||||
|
throw new Error("fail to load");
|
||||||
|
}
|
BIN
test/red/runtime-registry/resources/local/TestNodeModule/node_modules/TestNodeModule/icons/arrow-in.png
generated
vendored
Normal file
BIN
test/red/runtime-registry/resources/local/TestNodeModule/node_modules/TestNodeModule/icons/arrow-in.png
generated
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 393 B |
3
test/red/runtime-registry/resources/local/TestNodeModule/node_modules/TestNodeModule/icons/file.txt
generated
vendored
Normal file
3
test/red/runtime-registry/resources/local/TestNodeModule/node_modules/TestNodeModule/icons/file.txt
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
This file exists just to ensure the 'icons' directory is in the repository.
|
||||||
|
TODO: a future test needs to ensure the right icon files are loaded - this
|
||||||
|
directory can be used for that
|
11
test/red/runtime-registry/resources/local/TestNodeModule/node_modules/TestNodeModule/package.json
generated
vendored
Normal file
11
test/red/runtime-registry/resources/local/TestNodeModule/node_modules/TestNodeModule/package.json
generated
vendored
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"name" : "TestNodeModule",
|
||||||
|
"version" : "0.0.1",
|
||||||
|
"description" : "A test node module",
|
||||||
|
"node-red" : {
|
||||||
|
"nodes": {
|
||||||
|
"TestNodeMod1": "TestNodeModule.js",
|
||||||
|
"TestNodeMod2": "TestNodeModule2.js"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
5
test/red/runtime-registry/resources/local/TestNodeModule/node_modules/VersionMismatchModule/TestNodeModule.html
generated
vendored
Normal file
5
test/red/runtime-registry/resources/local/TestNodeModule/node_modules/VersionMismatchModule/TestNodeModule.html
generated
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<script type="text/x-red" data-template-name="test-node-mod-1"></script>
|
||||||
|
<script type="text/x-red" data-help-name="test-node-mod-1"></script>
|
||||||
|
<script type="text/javascript">RED.nodes.registerType('test-node-mod-1',{});</script>
|
||||||
|
<style></style>
|
||||||
|
<p>this should be filtered out</p>
|
5
test/red/runtime-registry/resources/local/TestNodeModule/node_modules/VersionMismatchModule/TestNodeModule.js
generated
vendored
Normal file
5
test/red/runtime-registry/resources/local/TestNodeModule/node_modules/VersionMismatchModule/TestNodeModule.js
generated
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
// A test node that exports a function
|
||||||
|
module.exports = function(RED) {
|
||||||
|
function TestNode(n) {}
|
||||||
|
RED.nodes.registerType("test-node-mod-1",TestNode);
|
||||||
|
}
|
5
test/red/runtime-registry/resources/local/TestNodeModule/node_modules/VersionMismatchModule/TestNodeModule2.html
generated
vendored
Normal file
5
test/red/runtime-registry/resources/local/TestNodeModule/node_modules/VersionMismatchModule/TestNodeModule2.html
generated
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<script type="text/x-red" data-template-name="test-node-mod-2"></script>
|
||||||
|
<script type="text/x-red" data-help-name="test-node-mod-2"></script>
|
||||||
|
<script type="text/javascript">RED.nodes.registerType('test-node-mod-2',{});</script>
|
||||||
|
<style></style>
|
||||||
|
<p>this should be filtered out</p>
|
4
test/red/runtime-registry/resources/local/TestNodeModule/node_modules/VersionMismatchModule/TestNodeModule2.js
generated
vendored
Normal file
4
test/red/runtime-registry/resources/local/TestNodeModule/node_modules/VersionMismatchModule/TestNodeModule2.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
// A test node that exports a function
|
||||||
|
module.exports = function(RED) {
|
||||||
|
throw new Error("fail to load");
|
||||||
|
}
|
3
test/red/runtime-registry/resources/local/TestNodeModule/node_modules/VersionMismatchModule/icons/file.txt
generated
vendored
Normal file
3
test/red/runtime-registry/resources/local/TestNodeModule/node_modules/VersionMismatchModule/icons/file.txt
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
This file exists just to ensure the 'icons' directory is in the repository.
|
||||||
|
TODO: a future test needs to ensure the right icon files are loaded - this
|
||||||
|
directory can be used for that
|
12
test/red/runtime-registry/resources/local/TestNodeModule/node_modules/VersionMismatchModule/package.json
generated
vendored
Normal file
12
test/red/runtime-registry/resources/local/TestNodeModule/node_modules/VersionMismatchModule/package.json
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"name" : "VersionMismatchModule",
|
||||||
|
"version" : "0.0.1",
|
||||||
|
"description" : "A test node module",
|
||||||
|
"node-red" : {
|
||||||
|
"version": "100.0.0",
|
||||||
|
"nodes": {
|
||||||
|
"VersionMismatchMod1": "TestNodeModule.js",
|
||||||
|
"VersionMismatchMod2": "TestNodeModule2.js"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user