From f939522a166b9e93758279f16fac0e5fcc4de223 Mon Sep 17 00:00:00 2001 From: Mert Can Altin Date: Thu, 7 Nov 2024 16:13:33 +0000 Subject: [PATCH] test: improve debugger custom test --- test/sequential/test-debugger-custom-port.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/sequential/test-debugger-custom-port.js b/test/sequential/test-debugger-custom-port.js index 7c8abdc0c55174e..351d362839f89d8 100644 --- a/test/sequential/test-debugger-custom-port.js +++ b/test/sequential/test-debugger-custom-port.js @@ -1,18 +1,18 @@ 'use strict'; const common = require('../common'); +const assert = require('node:assert'); +const { test } = require('node:test'); common.skipIfInspectorDisabled(); const fixtures = require('../common/fixtures'); const startCLI = require('../common/debugger'); -const assert = require('assert'); - // Custom port. const script = fixtures.path('debugger', 'three-lines.js'); const cli = startCLI([`--port=${common.PORT}`, script]); -(async function() { +test('should start the debugger on a custom port and print expected output', async (t) => { try { await cli.waitForInitialBreak(); await cli.waitForPrompt(); @@ -25,4 +25,4 @@ const cli = startCLI([`--port=${common.PORT}`, script]); const code = await cli.quit(); assert.strictEqual(code, 0); } -})().then(common.mustCall()); +}); \ No newline at end of file