Skip to content

Commit

Permalink
test: use async/await in test-debugger-help
Browse files Browse the repository at this point in the history
PR-URL: #44686
Reviewed-By: Rich Trott <rtrott@gmail.com>
  • Loading branch information
chanduMe authored and danielleadams committed Oct 5, 2022
1 parent 8033ad8 commit 9f14625
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 27 deletions.
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 comments on commit 9f14625

Please sign in to comment.