Move tests to reflect package structure
1
.gitignore
vendored
@ -19,3 +19,4 @@ locales/zz-ZZ
|
||||
nodes/core/locales/zz-ZZ
|
||||
!packages/node_modules
|
||||
packages/node_modules/@node-red/editor-client/public
|
||||
!test/**/node_modules
|
||||
|
2
packages/node_modules/node-red/red.js
generated
vendored
@ -24,7 +24,7 @@ catch(e) { bcrypt = require('bcryptjs'); }
|
||||
var nopt = require("nopt");
|
||||
var path = require("path");
|
||||
var fs = require("fs-extra");
|
||||
var RED = require("./red/red.js");
|
||||
var RED = require("./lib/red.js");
|
||||
|
||||
var server;
|
||||
var app = express();
|
||||
|
Before Width: | Height: | Size: 393 B After Width: | Height: | Size: 393 B |
4
test/unit/@node-red/registry/lib/resources/local/NestedDirectoryNode/NestedNode/node_modules/ShouldNotLoad.html
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<script type="text/x-red" data-template-name="should-not-load-2"></script>
|
||||
<script type="text/x-red" data-help-name="should-not-load-2"></script>
|
||||
<script type="text/javascript">RED.nodes.registerType('should-not-load-2',{});</script>
|
||||
<style></style>
|
5
test/unit/@node-red/registry/lib/resources/local/NestedDirectoryNode/NestedNode/node_modules/ShouldNotLoad.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("should-not-load-2",TestNode);
|
||||
}
|
Before Width: | Height: | Size: 393 B After Width: | Height: | Size: 393 B |
Before Width: | Height: | Size: 163 B After Width: | Height: | Size: 163 B |
Before Width: | Height: | Size: 393 B After Width: | Height: | Size: 393 B |