From d2432716ea5054c83188342f5c336a50f5f8e9b7 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Thu, 15 Apr 2021 15:30:02 +0100 Subject: [PATCH] Fix hook requires in unit tests --- test/unit/@node-red/runtime/lib/flows/Flow_spec.js | 2 +- test/unit/@node-red/runtime/lib/nodes/Node_spec.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/@node-red/runtime/lib/flows/Flow_spec.js b/test/unit/@node-red/runtime/lib/flows/Flow_spec.js index 1495660db..8caa31349 100644 --- a/test/unit/@node-red/runtime/lib/flows/Flow_spec.js +++ b/test/unit/@node-red/runtime/lib/flows/Flow_spec.js @@ -26,7 +26,7 @@ var flowUtils = NR_TEST_UTILS.require("@node-red/runtime/lib/flows/util"); var Flow = NR_TEST_UTILS.require("@node-red/runtime/lib/flows/Flow"); var flows = NR_TEST_UTILS.require("@node-red/runtime/lib/flows"); var Node = NR_TEST_UTILS.require("@node-red/runtime/lib/nodes/Node"); -var hooks = NR_TEST_UTILS.require("@node-red/runtime/lib/hooks"); +var hooks = NR_TEST_UTILS.require("@node-red/util/lib/hooks"); var typeRegistry = NR_TEST_UTILS.require("@node-red/registry"); diff --git a/test/unit/@node-red/runtime/lib/nodes/Node_spec.js b/test/unit/@node-red/runtime/lib/nodes/Node_spec.js index 10935f97d..3fe676f1e 100644 --- a/test/unit/@node-red/runtime/lib/nodes/Node_spec.js +++ b/test/unit/@node-red/runtime/lib/nodes/Node_spec.js @@ -19,7 +19,7 @@ var sinon = require('sinon'); var NR_TEST_UTILS = require("nr-test-utils"); var RedNode = NR_TEST_UTILS.require("@node-red/runtime/lib/nodes/Node"); var Log = NR_TEST_UTILS.require("@node-red/util").log; -var hooks = NR_TEST_UTILS.require("@node-red/runtime/lib/hooks"); +var hooks = NR_TEST_UTILS.require("@node-red/util/lib/hooks"); var flows = NR_TEST_UTILS.require("@node-red/runtime/lib/flows"); describe('Node', function() {