diff options
author | Rich Trott <rtrott@gmail.com> | 2021-04-08 23:55:45 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2021-04-25 01:50:18 -0700 |
commit | 3ef3501e498c4a05776440700e9238ef15f53c86 (patch) | |
tree | 68ee2e169b199581fce9c9360878720bcfd38d74 /deps/node-inspect/test/cli/help.test.js | |
parent | c6b4ab0d9f7249d75da1473a1c962e3b2e5d0b74 (diff) | |
download | node-new-3ef3501e498c4a05776440700e9238ef15f53c86.tar.gz |
test,debugger: migrate node-inspect tests to core
Migrate the node-inspect tests to core (where node-inspect code now
lives) and remove node-inspect from deps directory.
PR-URL: https://github.com/nodejs/node/pull/38161
Refs: https://github.com/nodejs/node/discussions/36481
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Jan Krems <jan.krems@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Diffstat (limited to 'deps/node-inspect/test/cli/help.test.js')
-rw-r--r-- | deps/node-inspect/test/cli/help.test.js | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/deps/node-inspect/test/cli/help.test.js b/deps/node-inspect/test/cli/help.test.js deleted file mode 100644 index 9f0c081bde..0000000000 --- a/deps/node-inspect/test/cli/help.test.js +++ /dev/null @@ -1,22 +0,0 @@ -'use strict'; -const { test } = require('tap'); - -const startCLI = require('./start-cli'); - -test('examples/empty.js', (t) => { - const cli = startCLI(['examples/empty.js']); - - function onFatal(error) { - cli.quit(); - throw error; - } - - return cli.waitForInitialBreak() - .then(() => cli.waitForPrompt()) - .then(() => cli.command('help')) - .then(() => { - t.match(cli.output, /run, restart, r\s+/m); - }) - .then(() => cli.quit()) - .then(null, onFatal); -}); |