diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2022-09-10 11:38:11 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-10 11:38:11 -0400 |
| commit | 3b0de03b59b0e3eee09c9161dc05e39544108a53 (patch) | |
| tree | 7f76eb991a258956490ec95c6b400a44740c81d2 /cli/tests/testdata/npm/registry/@denotest | |
| parent | a54d5654a26d29dfca1162ccc5476e9224a657e9 (diff) | |
fix(npm): remove export binding to match node (#15837)
Diffstat (limited to 'cli/tests/testdata/npm/registry/@denotest')
| -rw-r--r-- | cli/tests/testdata/npm/registry/@denotest/cjs-this-in-exports/1.0.0/index.js | 8 | ||||
| -rw-r--r-- | cli/tests/testdata/npm/registry/@denotest/cjs-this-in-exports/1.0.0/package.json | 5 |
2 files changed, 13 insertions, 0 deletions
diff --git a/cli/tests/testdata/npm/registry/@denotest/cjs-this-in-exports/1.0.0/index.js b/cli/tests/testdata/npm/registry/@denotest/cjs-this-in-exports/1.0.0/index.js new file mode 100644 index 000000000..21a9d7d7e --- /dev/null +++ b/cli/tests/testdata/npm/registry/@denotest/cjs-this-in-exports/1.0.0/index.js @@ -0,0 +1,8 @@ +module.exports = { + getValue() { + return this.otherMethod(); + }, + otherMethod() { + return 1; + }, +}; diff --git a/cli/tests/testdata/npm/registry/@denotest/cjs-this-in-exports/1.0.0/package.json b/cli/tests/testdata/npm/registry/@denotest/cjs-this-in-exports/1.0.0/package.json new file mode 100644 index 000000000..729b8c34e --- /dev/null +++ b/cli/tests/testdata/npm/registry/@denotest/cjs-this-in-exports/1.0.0/package.json @@ -0,0 +1,5 @@ +{ + "name": "@denotest/cjs-this-in-exports", + "version": "1.0.0", + "main": "./index.js" +} |
