mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Fixup all the tests
This commit is contained in:
5
packages/node_modules/@node-red/editor-api/lib/editor/ui.js
generated
vendored
5
packages/node_modules/@node-red/editor-api/lib/editor/ui.js
generated
vendored
@@ -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);
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user