Skip to content

Commit

Permalink
test: improve debugger custom test
Browse files Browse the repository at this point in the history
  • Loading branch information
Mert Can Altin committed Nov 7, 2024
1 parent 7788999 commit fbcd2ad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/sequential/test-debugger-custom-port.js
Original file line number Diff line number Diff line change
@@ -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 () => {
try {
await cli.waitForInitialBreak();
await cli.waitForPrompt();
Expand All @@ -25,4 +25,4 @@ const cli = startCLI([`--port=${common.PORT}`, script]);
const code = await cli.quit();
assert.strictEqual(code, 0);
}
})().then(common.mustCall());
});

0 comments on commit fbcd2ad

Please sign in to comment.