diff --git a/test/editor/editor_helper.js b/test/editor/editor_helper.js index 656ebe5c7..2cf103188 100644 --- a/test/editor/editor_helper.js +++ b/test/editor/editor_helper.js @@ -21,7 +21,7 @@ var fs = require('fs-extra'); var path = require('path'); var app = express(); -var RED = require("../../packages/node_modules/node-red/lib/red.js"); +var RED = require("nr-test-utils").require("node-red/lib/red.js"); var utilPage = require("./pageobjects/util/util_page"); diff --git a/test/editor/pageobjects/editor/workspace_page.js b/test/editor/pageobjects/editor/workspace_page.js index 7eca9d25a..e1a57d86d 100644 --- a/test/editor/pageobjects/editor/workspace_page.js +++ b/test/editor/pageobjects/editor/workspace_page.js @@ -16,7 +16,7 @@ var when = require("when"); -var events = require("../../../../packages/node_modules/@node-red/runtime/lib/events.js"); +var events = require("nr-test-utils").require("@node-red/runtime/lib/events.js"); var palette = require("./palette_page"); var nodeFactory = require("../nodes/nodefactory_page");