Skip to content
Permalink
Browse files
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 9f14625fe5356e5fdb27b0fa8281a2d49e5c88c8
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 27 deletions.

This file was deleted.

@@ -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.