Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
test: use async/await in test-debugger-help
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
@@ -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.