From 9c8ebce3dcc784f1a6ecd29d5fe0b3d35256ab82 Mon Sep 17 00:00:00 2001 From: Leo Kettmeir Date: Sun, 30 Apr 2023 09:24:13 +0200 Subject: refactor: merge Deno & Node inspectors (#18691) --- .../npm/cjs_module_export_assignment/main.out | 5 ++++- .../npm/cjs_module_export_assignment_number/main.out | 2 +- .../testdata/npm/esm_import_cjs_default/main.out | 20 ++++++++++---------- .../testdata/npm/tarball_with_global_header/main.out | 2 +- 4 files changed, 16 insertions(+), 13 deletions(-) (limited to 'cli/tests/testdata/npm') diff --git a/cli/tests/testdata/npm/cjs_module_export_assignment/main.out b/cli/tests/testdata/npm/cjs_module_export_assignment/main.out index 7dfab41f1..dea185e38 100644 --- a/cli/tests/testdata/npm/cjs_module_export_assignment/main.out +++ b/cli/tests/testdata/npm/cjs_module_export_assignment/main.out @@ -1,3 +1,6 @@ { func: [Function: func] } -Module { default: { func: [Function: func] }, func: [Function: func] } +[Module: null prototype] { + default: { func: [Function: func] }, + func: [Function: func] +} 5 diff --git a/cli/tests/testdata/npm/cjs_module_export_assignment_number/main.out b/cli/tests/testdata/npm/cjs_module_export_assignment_number/main.out index c808f4143..e559775cf 100644 --- a/cli/tests/testdata/npm/cjs_module_export_assignment_number/main.out +++ b/cli/tests/testdata/npm/cjs_module_export_assignment_number/main.out @@ -1,3 +1,3 @@ 5 5 -Module { default: 5 } +[Module: null prototype] { default: 5 } diff --git a/cli/tests/testdata/npm/esm_import_cjs_default/main.out b/cli/tests/testdata/npm/esm_import_cjs_default/main.out index b98f485da..0f6a61e34 100644 --- a/cli/tests/testdata/npm/esm_import_cjs_default/main.out +++ b/cli/tests/testdata/npm/esm_import_cjs_default/main.out @@ -3,20 +3,20 @@ Node esm importing node cjs { default: [Function (anonymous)], named: [Function (anonymous)], - MyClass: [Class: MyClass] + MyClass: [class MyClass] } { default: [Function (anonymous)], named: [Function (anonymous)] } -Module { - MyClass: [Class: MyClass], +[Module: null prototype] { + MyClass: [class MyClass], __esModule: true, default: { default: [Function (anonymous)], named: [Function (anonymous)], - MyClass: [Class: MyClass] + MyClass: [class MyClass] }, named: [Function (anonymous)] } -Module { +[Module: null prototype] { __esModule: true, default: { default: [Function (anonymous)], named: [Function (anonymous)] }, named: [Function (anonymous)] @@ -28,15 +28,15 @@ Deno esm importing node cjs { default: [Function (anonymous)], named: [Function (anonymous)], - MyClass: [Class: MyClass] + MyClass: [class MyClass] } -Module { - MyClass: [Class: MyClass], +[Module: null prototype] { + MyClass: [class MyClass], __esModule: true, default: { default: [Function (anonymous)], named: [Function (anonymous)], - MyClass: [Class: MyClass] + MyClass: [class MyClass] }, named: [Function (anonymous)] } @@ -44,7 +44,7 @@ Module { Deno esm importing node esm =========================== [Function: default] -Module { default: [Function: default] } +[Module: null prototype] { default: [Function: default] } =========================== 1 5 diff --git a/cli/tests/testdata/npm/tarball_with_global_header/main.out b/cli/tests/testdata/npm/tarball_with_global_header/main.out index caf351e2e..ff211087b 100644 --- a/cli/tests/testdata/npm/tarball_with_global_header/main.out +++ b/cli/tests/testdata/npm/tarball_with_global_header/main.out @@ -1 +1 @@ -[Class: Client] +[class Client extends EventEmitter] -- cgit v1.2.3