From c07adb17b164c1cf3da8d38659ea9f5d7ff42e9c Mon Sep 17 00:00:00 2001 From: Jan Krems Date: Mon, 30 Oct 2017 10:45:33 -0700 Subject: [PATCH] test: Use useful break location --- test/cli/break.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/cli/break.test.js b/test/cli/break.test.js index 59b12cd..ce8c8d6 100644 --- a/test/cli/break.test.js +++ b/test/cli/break.test.js @@ -134,7 +134,7 @@ test('sb before loading file', (t) => { return cli.waitForInitialBreak() .then(() => cli.waitForPrompt()) - .then(() => cli.command('sb("other.js", 3)')) + .then(() => cli.command('sb("other.js", 2)')) .then(() => { t.match( cli.output, @@ -145,7 +145,7 @@ test('sb before loading file', (t) => { .then(() => { t.match( cli.output, - `break in ${otherScript}:3`, + `break in ${otherScript}:2`, 'found breakpoint in file that was not loaded yet'); }) .then(() => cli.quit())