From 8946bc761dbbb3d5bc3dc78eaf8e8dcaf2829c17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CPooja?= Date: Fri, 16 Sep 2022 14:14:57 -0700 Subject: [PATCH] test: corrected linting error --- test/sequential/test-debugger-watchers.mjs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/sequential/test-debugger-watchers.mjs b/test/sequential/test-debugger-watchers.mjs index a6bc4c83aca773..2c4fd11545f2f5 100644 --- a/test/sequential/test-debugger-watchers.mjs +++ b/test/sequential/test-debugger-watchers.mjs @@ -6,6 +6,9 @@ import startCLI from '../common/debugger.js'; import assert from 'assert'; +const script = path('debugger', 'break.js'); +const cli = startCLI([script]); + function onFatal(error) { cli.quit(); throw error; @@ -13,9 +16,6 @@ function onFatal(error) { // Stepping through breakpoints. try { - const script = path('debugger', 'break.js'); - const cli = startCLI([script]); - await cli.waitForInitialBreak(); await cli.waitForPrompt(); await cli.command('watch("x")'); @@ -44,6 +44,6 @@ try { ); await cli.quit(); -} catch(error) { - onFatal(error) -} \ No newline at end of file +} catch (error) { + onFatal(error); +}