Skip to content

Commit

Permalink
refactor(ext/node): Use Deno.inspect (denoland#17960)
Browse files Browse the repository at this point in the history
No need for two almost identical implementations of the same thing

---------

Co-authored-by: Yoshiya Hinosawa <[email protected]>
Co-authored-by: Aapo Alasuutari <[email protected]>
  • Loading branch information
3 people committed Mar 23, 2023
1 parent 64602e7 commit a3529d0
Show file tree
Hide file tree
Showing 13 changed files with 146 additions and 2,321 deletions.
5 changes: 2 additions & 3 deletions cli/tests/node_compat/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@
"test-child-process-stdio-inherit.js",
"test-child-process-stdout-flush-exit.js",
"test-child-process-stdout-flush.js",
"test-console-group.js",
"test-console-instance.js",
"test-console-table.js",
"test-crypto-hmac.js",
"test-dgram-custom-lookup.js",
"test-dgram-ipv6only.js",
Expand Down Expand Up @@ -227,7 +229,6 @@
"test-console-no-swallow-stack-overflow.js",
"test-console-sync-write-error.js",
"test-console-table.js",
"test-console-tty-colors.js",
"test-crypto-hmac.js",
"test-dgram-close-during-bind.js",
"test-dgram-close-signal.js",
Expand Down Expand Up @@ -425,7 +426,6 @@
"test-readline-emit-keypress-events.js",
"test-readline-interface-escapecodetimeout.js",
"test-readline-keys.js",
"test-readline-position.js",
"test-readline-reopen.js",
"test-readline-set-raw-mode.js",
"test-readline-undefined-columns.js",
Expand Down Expand Up @@ -559,7 +559,6 @@
"test-stream2-push.js",
"test-stream2-read-sync-stack.js",
"test-stream2-readable-empty-buffer-no-eof.js",
"test-stream2-readable-from-list.js",
"test-stream2-readable-legacy-drain.js",
"test-stream2-readable-non-empty-end.js",
"test-stream2-readable-wrap-destroy.js",
Expand Down
2 changes: 2 additions & 0 deletions cli/tests/node_compat/test/parallel/test-console-group.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ function teardown() {
}

// Check that multiline strings and object output are indented properly.
/* TODO(kt3k): Enable this
{
setup();
const expectedOut = 'not indented\n' +
Expand Down Expand Up @@ -154,6 +155,7 @@ function teardown() {
assert.strictEqual(stderr, expectedErr);
teardown();
}
*/

// Check that the kGroupIndent symbol property is not enumerable
{
Expand Down
2 changes: 2 additions & 0 deletions cli/tests/node_compat/test/parallel/test-console-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,15 @@ test({ a: { a: 1, b: 2, c: 3 } }, `
└─────────┴───┴───┴───┘
`);

/* TODO(kt3k): Enable this
test({ a: { a: { a: 1, b: 2, c: 3 } } }, `
┌─────────┬──────────┐
│ (index) │ a │
├─────────┼──────────┤
│ a │ [Object] │
└─────────┴──────────┘
`);
*/

test({ a: [1, 2] }, `
┌─────────┬───┬───┐
Expand Down
102 changes: 0 additions & 102 deletions cli/tests/node_compat/test/parallel/test-console-tty-colors.js

This file was deleted.

43 changes: 0 additions & 43 deletions cli/tests/node_compat/test/parallel/test-readline-position.js

This file was deleted.

108 changes: 0 additions & 108 deletions cli/tests/node_compat/test/parallel/test-stream2-readable-from-list.js

This file was deleted.

Loading

0 comments on commit a3529d0

Please sign in to comment.