Fixup all the tests

This commit is contained in:
Nick O'Leary
2018-08-20 16:17:24 +01:00
parent 998bf92ad4
commit 38a1291c5b
113 changed files with 458 additions and 250 deletions

View File

@@ -26,12 +26,13 @@ var theme = require("./theme");
var runtimeAPI;
var editorClientDir = path.dirname(require.resolve("@node-red/editor-client"));
var defaultNodeIcon = path.join(editorClientDir,"public","red","images","icons","arrow-in.png");
var editorTemplate = path.join(editorClientDir,"src","templates","index.mst");
var editorTemplatePath = path.join(editorClientDir,"src","templates","index.mst");
var editorTemplate;
module.exports = {
init: function(_runtimeAPI) {
runtimeAPI = _runtimeAPI;
editorTemplate = fs.readFileSync(editorTemplate,"utf8");
editorTemplate = fs.readFileSync(editorTemplatePath,"utf8");
Mustache.parse(editorTemplate);
},

View File

@@ -8,7 +8,7 @@
"type": "git",
"url": "https://github.com/node-red/node-red.git"
},
"main": "red/red.js",
"main": "lib/red.js",
"scripts": {
"start": "node red.js"
},