Skip to content

Commit f939522

Browse files
author
Mert Can Altin
committed
test: improve debugger custom test
1 parent 7788999 commit f939522

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/sequential/test-debugger-custom-port.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
'use strict';
22
const common = require('../common');
3+
const assert = require('node:assert');
4+
const { test } = require('node:test');
35

46
common.skipIfInspectorDisabled();
57

68
const fixtures = require('../common/fixtures');
79
const startCLI = require('../common/debugger');
810

9-
const assert = require('assert');
10-
1111
// Custom port.
1212
const script = fixtures.path('debugger', 'three-lines.js');
1313

1414
const cli = startCLI([`--port=${common.PORT}`, script]);
15-
(async function() {
15+
test('should start the debugger on a custom port and print expected output', async (t) => {
1616
try {
1717
await cli.waitForInitialBreak();
1818
await cli.waitForPrompt();
@@ -25,4 +25,4 @@ const cli = startCLI([`--port=${common.PORT}`, script]);
2525
const code = await cli.quit();
2626
assert.strictEqual(code, 0);
2727
}
28-
})().then(common.mustCall());
28+
});

0 commit comments

Comments
 (0)