diff options
author | Jan Krems <jan.krems@groupon.com> | 2017-04-04 09:47:43 -0700 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2017-04-14 23:48:05 +0200 |
commit | 021719738eb8bc86356e23fe3902d2900a878fd6 (patch) | |
tree | d5398ccba2c9149cc700d470444534c66e82a25d /deps/node-inspect/test/cli/low-level.test.js | |
parent | 7fd2923f1fcce9a782d450f01ad414589030c596 (diff) | |
download | android-node-v8-021719738eb8bc86356e23fe3902d2900a878fd6.tar.gz android-node-v8-021719738eb8bc86356e23fe3902d2900a878fd6.tar.bz2 android-node-v8-021719738eb8bc86356e23fe3902d2900a878fd6.zip |
deps: update node-inspect to v1.11.2
PR-URL: https://github.com/nodejs/node/pull/12363
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Alexey Orlenko <eaglexrlnk@gmail.com>
Diffstat (limited to 'deps/node-inspect/test/cli/low-level.test.js')
-rw-r--r-- | deps/node-inspect/test/cli/low-level.test.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/deps/node-inspect/test/cli/low-level.test.js b/deps/node-inspect/test/cli/low-level.test.js index b6301b2f23..77e3fc2bcf 100644 --- a/deps/node-inspect/test/cli/low-level.test.js +++ b/deps/node-inspect/test/cli/low-level.test.js @@ -4,15 +4,15 @@ const { test } = require('tap'); const startCLI = require('./start-cli'); test('Debugger agent direct access', (t) => { - const cli = startCLI(['examples/empty.js']); - const scriptPattern = /^\* (\d+): examples(?:\/|\\)empty.js/; + const cli = startCLI(['examples/three-lines.js']); + const scriptPattern = /^\* (\d+): examples(?:\/|\\)three-lines.js/; function onFatal(error) { cli.quit(); throw error; } - return cli.waitFor(/break/) + return cli.waitForInitialBreak() .then(() => cli.waitForPrompt()) .then(() => cli.command('scripts')) .then(() => { @@ -24,7 +24,10 @@ test('Debugger agent direct access', (t) => { .then(() => { t.match( cli.output, - /scriptSource: '\(function \([^)]+\) \{ \\n}\);'/); + /scriptSource: '\(function \(/); + t.match( + cli.output, + /let x = 1;/); }) .then(() => cli.quit()) .then(null, onFatal); |