diff options
author | nlf <quitlahok@gmail.com> | 2022-04-08 00:37:28 +0300 |
---|---|---|
committer | Nathan Fritz <fritzy@github.com> | 2022-04-12 03:14:51 +0300 |
commit | 0c7648756a1aff643d5054b77429c04055ae8961 (patch) | |
tree | f268bda13ad75b483aa1c5aed93c43dc08afe659 /workspaces/arborist | |
parent | fe4a3d052a7be70e68ce3a519f0e03d22f1b97f7 (diff) |
chore(arborist): update printable tree test to be a valid tree
Diffstat (limited to 'workspaces/arborist')
-rw-r--r-- | workspaces/arborist/tap-snapshots/test/printable.js.test.cjs | 16 | ||||
-rw-r--r-- | workspaces/arborist/test/printable.js | 4 |
2 files changed, 9 insertions, 11 deletions
diff --git a/workspaces/arborist/tap-snapshots/test/printable.js.test.cjs b/workspaces/arborist/tap-snapshots/test/printable.js.test.cjs index 3a9a283d0..ce2396d1c 100644 --- a/workspaces/arborist/tap-snapshots/test/printable.js.test.cjs +++ b/workspaces/arborist/tap-snapshots/test/printable.js.test.cjs @@ -564,24 +564,24 @@ version:'1.0.0', location:'', path:'/some/path', isProjectRoot:true, -overrides:Map{'foo@1' => '2.0.0', 'bar' => '2.0.0'}, -edgesOut:Map{ -'bar' =>{prod bar@^1.0.0 overridden:2.0.0 -> node_modules/bar}, -'foo' =>{prod foo@^1.0.0 overridden:2.0.0 -> node_modules/foo}}, +overrides:Map{'bar' => '2.0.0'}, +edgesOut:Map{'foo' =>{prod foo@^1.0.0 -> node_modules/foo}}, children:Map{ 'bar' =>{ name:'bar', version:'2.0.0', location:'node_modules/bar', path:'/some/path/node_modules/bar', -overrides:Map{'bar' => '2.0.0', 'foo@1' => '2.0.0'}, -edgesIn:Set{{"" prod bar@^1.0.0}}}, +overrides:Map{'bar' => '2.0.0'}, +edgesIn:Set{{node_modules/foo prod bar@^1.0.0}}}, 'foo' =>{ name:'foo', -version:'2.0.0', +version:'1.0.0', location:'node_modules/foo', path:'/some/path/node_modules/foo', -overrides:Map{'foo@1' => '2.0.0', 'bar' => '2.0.0'}, +overrides:Map{'bar' => '2.0.0'}, +edgesOut:Map{ +'bar' =>{prod bar@^1.0.0 overridden:2.0.0 -> node_modules/bar}}, edgesIn:Set{{"" prod foo@^1.0.0}}}}} ` diff --git a/workspaces/arborist/test/printable.js b/workspaces/arborist/test/printable.js index be2a6043d..8d06059d5 100644 --- a/workspaces/arborist/test/printable.js +++ b/workspaces/arborist/test/printable.js @@ -421,15 +421,13 @@ t.test('show overrides', (t) => { version: '1.0.0', dependencies: { foo: '^1.0.0', - bar: '^1.0.0', }, overrides: { - 'foo@1': '2.0.0', bar: '2.0.0', }, }, children: [ - { pkg: { name: 'foo', version: '2.0.0' }, ...flags }, + { pkg: { name: 'foo', version: '1.0.0', dependencies: { bar: '^1.0.0' } }, ...flags }, { pkg: { name: 'bar', version: '2.0.0' }, ...flags }, ], ...flags, |