summaryrefslogtreecommitdiff
path: root/deps/node/deps/node-inspect/test/cli/watchers.test.js
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-08-13 12:29:07 +0200
committerFlorian Dold <florian.dold@gmail.com>2019-08-13 12:29:22 +0200
commitda736d8259331a8ef13bf4bbb10bbb8a5c0e5299 (patch)
tree4d849133b1c9a9c7067e96ff7dd8faa1d927e0bb /deps/node/deps/node-inspect/test/cli/watchers.test.js
parentda228cf9d71b747f1824e85127039e5afc7effd8 (diff)
downloadakono-da736d8259331a8ef13bf4bbb10bbb8a5c0e5299.tar.gz
akono-da736d8259331a8ef13bf4bbb10bbb8a5c0e5299.tar.bz2
akono-da736d8259331a8ef13bf4bbb10bbb8a5c0e5299.zip
remove node/v8 from source tree
Diffstat (limited to 'deps/node/deps/node-inspect/test/cli/watchers.test.js')
-rw-r--r--deps/node/deps/node-inspect/test/cli/watchers.test.js42
1 files changed, 0 insertions, 42 deletions
diff --git a/deps/node/deps/node-inspect/test/cli/watchers.test.js b/deps/node/deps/node-inspect/test/cli/watchers.test.js
deleted file mode 100644
index 46bcde19..00000000
--- a/deps/node/deps/node-inspect/test/cli/watchers.test.js
+++ /dev/null
@@ -1,42 +0,0 @@
-'use strict';
-const { test } = require('tap');
-
-const startCLI = require('./start-cli');
-
-test('stepping through breakpoints', (t) => {
- const cli = startCLI(['examples/break.js']);
-
- function onFatal(error) {
- cli.quit();
- throw error;
- }
-
- return cli.waitForInitialBreak()
- .then(() => cli.waitForPrompt())
- .then(() => cli.command('watch("x")'))
- .then(() => cli.command('watch("\\"Hello\\"")'))
- .then(() => cli.command('watch("42")'))
- .then(() => cli.command('watch("NaN")'))
- .then(() => cli.command('watch("true")'))
- .then(() => cli.command('watch("[1, 2]")'))
- .then(() => cli.command('watch("process.env")'))
- .then(() => cli.command('watchers'))
- .then(() => {
- t.match(cli.output, 'x is not defined');
- })
- .then(() => cli.command('unwatch("42")'))
- .then(() => cli.stepCommand('n'))
- .then(() => {
- t.match(cli.output, '0: x = 10');
- t.match(cli.output, '1: "Hello" = \'Hello\'');
- t.match(cli.output, '2: NaN = NaN');
- t.match(cli.output, '3: true = true');
- t.match(cli.output, '4: [1, 2] = [ 1, 2 ]');
- t.match(
- cli.output,
- /5: process\.env =\n\s+\{[\s\S]+,\n\s+\.\.\. \}/,
- 'shows "..." for process.env');
- })
- .then(() => cli.quit())
- .then(null, onFatal);
-});