From 55ffdae74930232a6d2a83602263945bcbacbe0a Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Sat, 28 Oct 2023 11:42:24 +0100 Subject: [PATCH] test(start): fix mock --- test/start.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/start.test.js b/test/start.test.js index 7e91fb5c..25894cb3 100644 --- a/test/start.test.js +++ b/test/start.test.js @@ -714,7 +714,7 @@ test('should start the server with inspect options and the defalut port is 9320' t.plan(3) const start = proxyquire('../start', { - inspector: { + 'node:inspector': { open (p) { t.equal(p, 9320) t.pass('inspect open called') @@ -733,7 +733,7 @@ test('should start the server with inspect options and use the exactly port', as const port = getPort() const start = proxyquire('../start', { - inspector: { + 'node:inspector': { open (p) { t.equal(p, Number(port)) t.pass('inspect open called')