8000 test: change promise to async/await in test-debugger-help.mjs by chanduMe · Pull Request #44686 · nodejs/node · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
test: use async/await in test-debugger-help
  • Loading branch information
chanduMe authored and Trott committed Sep 29, 2022
commit e3118ea0b358734f1b2054a9c1c0a5a7e7a62ae9
27 changes: 0 additions & 27 deletions test/sequential/test-debugger-help.js

This file was deleted.

19 changes: 19 additions & 0 deletions test/sequential/test-debugger-help.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { skipIfInspectorDisabled } from '../common/index.mjs';

skipIfInspectorDisabled();

import { path } from '../common/fixtures.mjs';
import startCLI from '../common/debugger.js';

import assert from 'assert';

const cli = startCLI([path('debugger', 'empty.js')]);

try {
await cli.waitForInitialBreak();
await cli.waitForPrompt();
await cli.command('help');
assert.match(cli.output, /run, restart, r\s+/m);
} finally {
cli.quit();
}
0