diff --git a/test/sequential/test-debugger-scripts.js b/test/sequential/test-debugger-scripts.js index 9f0b8fea5f9267..72e77f2e20e11c 100644 --- a/test/sequential/test-debugger-scripts.js +++ b/test/sequential/test-debugger-scripts.js @@ -45,30 +45,29 @@ const assert = require('assert'); // .then(() => cli.quit()) // .then(null, onFatal); -(async () => { - await cli.waitForInitialBreak(); - await cli.waitForPrompt(); - await cli.command('scripts'); - assert.match( - cli.output, - /^\* \d+: \S+debugger(?:\/|\\)three-lines\.js/m, - 'lists the user script'); - assert.doesNotMatch( - cli.output, - /\d+: node:internal\/buffer/, - 'omits node-internal scripts'); - await cli.command('scripts(true)'); - assert.match( - cli.output, - /\* \d+: \S+debugger(?:\/|\\)three-lines\.js/, - 'lists the user script'); - assert.match( - cli.output, - /\d+: node:internal\/buffer/, - 'includes node-internal scripts'); - -})() -.then(() => cli.quit()) -.then(null, onFatal); + (async () => { + await cli.waitForInitialBreak(); + await cli.waitForPrompt(); + await cli.command('scripts'); + assert.match( + cli.output, + /^\* \d+: \S+debugger(?:\/|\\)three-lines\.js/m, + 'lists the user script'); + assert.doesNotMatch( + cli.output, + /\d+: node:internal\/buffer/, + 'omits node-internal scripts'); + await cli.command('scripts(true)'); + assert.match( + cli.output, + /\* \d+: \S+debugger(?:\/|\\)three-lines\.js/, + 'lists the user script'); + assert.match( + cli.output, + /\d+: node:internal\/buffer/, + 'includes node-internal scripts'); + })() + .then(() => cli.quit()) + .then(null, onFatal); }