Skip to content

Commit af06765

Browse files
committed
test: remove await from assert
1 parent 1c2eabe commit af06765

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/sequential/test-debugger-exceptions.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const path = require('path');
2525
await cli.waitForInitialBreak();
2626
await cli.waitForPrompt();
2727
await cli.waitForPrompt();
28-
await assert.deepStrictEqual(cli.breakInfo, { filename: script, line: 1 });
28+
assert.deepStrictEqual(cli.breakInfo, { filename: script, line: 1 });
2929

3030
// Making sure it will die by default:
3131
await cli.command('c');
@@ -34,26 +34,26 @@ const path = require('path');
3434
// Next run: With `breakOnException` it pauses in both places.
3535
await cli.stepCommand('r');
3636
await cli.waitForInitialBreak();
37-
await assert.deepStrictEqual(cli.breakInfo, { filename: script, line: 1 });
37+
assert.deepStrictEqual(cli.breakInfo, { filename: script, line: 1 });
3838
await cli.command('breakOnException');
3939
await cli.stepCommand('c');
40-
await assert.ok(cli.output.includes(`exception in ${script}:3`));
40+
assert.ok(cli.output.includes(`exception in ${script}:3`));
4141
await cli.stepCommand('c');
42-
await assert.ok(cli.output.includes(`exception in ${script}:9`));
42+
assert.ok(cli.output.includes(`exception in ${script}:9`));
4343

4444
// Next run: With `breakOnUncaught` it only pauses on the 2nd exception.
4545
await cli.command('breakOnUncaught');
4646
await cli.stepCommand('r'); // Also, the setting survives the restart.
4747
await cli.waitForInitialBreak();
4848
await cli.waitForInitialBreak();
49-
await assert.deepStrictEqual(cli.breakInfo, { filename: script, line: 1 });
49+
assert.deepStrictEqual(cli.breakInfo, { filename: script, line: 1 });
5050
await cli.stepCommand('c');
51-
await assert.ok(cli.output.includes(`exception in ${script}:9`));
51+
assert.ok(cli.output.includes(`exception in ${script}:9`));
5252

5353
// Next run: Back to the initial state! It should die again.
5454
await cli.command('breakOnNone');
5555
await cli.stepCommand('r');
56-
await assert.deepStrictEqual(cli.breakInfo, { filename: script, line: 1 });
56+
assert.deepStrictEqual(cli.breakInfo, { filename: script, line: 1 });
5757
await cli.command('c');
5858
await cli.waitFor(/disconnect/);
5959
await cli.quit();

0 commit comments

Comments
 (0)