diff options
| author | Leo Kettmeir <crowlkats@toaxl.com> | 2023-04-30 09:24:13 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-30 07:24:13 +0000 |
| commit | 9c8ebce3dcc784f1a6ecd29d5fe0b3d35256ab82 (patch) | |
| tree | e423a712e05448d5c895777a810abdf7c9be59ae /cli/tests/testdata/npm | |
| parent | 64e072e499d36ca824db297a493667415ed67cdf (diff) | |
refactor: merge Deno & Node inspectors (#18691)
Diffstat (limited to 'cli/tests/testdata/npm')
4 files changed, 16 insertions, 13 deletions
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] |
