Skip to content

Commit c949ae5

Browse files
authored
test: update test-debugger-scripts to use await/async -fix lint errors
1 parent 222d949 commit c949ae5

File tree

1 file changed

+24
-25
lines changed

1 file changed

+24
-25
lines changed

test/sequential/test-debugger-scripts.js

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -45,30 +45,29 @@ const assert = require('assert');
4545
// .then(() => cli.quit())
4646
// .then(null, onFatal);
4747

48-
(async () => {
49-
await cli.waitForInitialBreak();
50-
await cli.waitForPrompt();
51-
await cli.command('scripts');
52-
assert.match(
53-
cli.output,
54-
/^\* \d+: \S+debugger(?:\/|\\)three-lines\.js/m,
55-
'lists the user script');
56-
assert.doesNotMatch(
57-
cli.output,
58-
/\d+: node:internal\/buffer/,
59-
'omits node-internal scripts');
60-
await cli.command('scripts(true)');
61-
assert.match(
62-
cli.output,
63-
/\* \d+: \S+debugger(?:\/|\\)three-lines\.js/,
64-
'lists the user script');
65-
assert.match(
66-
cli.output,
67-
/\d+: node:internal\/buffer/,
68-
'includes node-internal scripts');
69-
70-
})()
71-
.then(() => cli.quit())
72-
.then(null, onFatal);
48+
(async () => {
49+
await cli.waitForInitialBreak();
50+
await cli.waitForPrompt();
51+
await cli.command('scripts');
52+
assert.match(
53+
cli.output,
54+
/^\* \d+: \S+debugger(?:\/|\\)three-lines\.js/m,
55+
'lists the user script');
56+
assert.doesNotMatch(
57+
cli.output,
58+
/\d+: node:internal\/buffer/,
59+
'omits node-internal scripts');
60+
await cli.command('scripts(true)');
61+
assert.match(
62+
cli.output,
63+
/\* \d+: \S+debugger(?:\/|\\)three-lines\.js/,
64+
'lists the user script');
65+
assert.match(
66+
cli.output,
67+
/\d+: node:internal\/buffer/,
68+
'includes node-internal scripts');
69+
})()
70+
.then(() => cli.quit())
71+
.then(null, onFatal);
7372

7473
}

0 commit comments

Comments
 (0)