diff options
author | Jordan Harband <ljharb@gmail.com> | 2022-01-06 22:12:25 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-06 22:12:25 +0300 |
commit | 3cfae384011a8b291cc82cc02b56bc114557a9e5 (patch) | |
tree | abf1470aff9474c369ede4e5c6f35f61403617ff /workspaces/arborist/tap-snapshots | |
parent | 0d3cf8b6e8cbc46d394a1bdfcc12ffa5f6a72859 (diff) |
[arborist] [refactor] `Shrinkwrap`: add `toJSON`/`toString` methods to get shrinkwrap contents without saving (#4181)
Diffstat (limited to 'workspaces/arborist/tap-snapshots')
-rw-r--r-- | workspaces/arborist/tap-snapshots/test/shrinkwrap.js.test.cjs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/workspaces/arborist/tap-snapshots/test/shrinkwrap.js.test.cjs b/workspaces/arborist/tap-snapshots/test/shrinkwrap.js.test.cjs index 39b1d97ec..93f6e8a89 100644 --- a/workspaces/arborist/tap-snapshots/test/shrinkwrap.js.test.cjs +++ b/workspaces/arborist/tap-snapshots/test/shrinkwrap.js.test.cjs @@ -14240,6 +14240,25 @@ exports[`test/shrinkwrap.js TAP saving dependency-free shrinkwrap object load fi ` +exports[`test/shrinkwrap.js TAP saving dependency-free shrinkwrap object load the unindented file, and generate expected contents > indented json object output 1`] = ` +Object { + "dependencies": Object {}, + "lockfileVersion": 2, + "packages": Object {}, + "requires": true, +} +` + +exports[`test/shrinkwrap.js TAP saving dependency-free shrinkwrap object load the unindented file, and generate expected contents > indented json string output 1`] = ` +{ + "lockfileVersion": 2, + "requires": true, + "packages": {}, + "dependencies": {} +} + +` + exports[`test/shrinkwrap.js TAP saving dependency-free shrinkwrap object load the unindented file, and save it back default > indented json output 1`] = ` { "lockfileVersion": 2, |