55 * Make sure to inspect the output below. Do not ignore changes!
66 */
77'use strict'
8- exports [ `test/lib/commands/pkg.js TAP delete multiple field > should delete multiple fields from package.json 1` ] = `
8+ exports [ `test/lib/commands/pkg.js TAP delete delete multiple field > should delete multiple fields from package.json 1` ] = `
99Object {
1010 "name": "foo",
1111}
1212`
1313
14- exports [ `test/lib/commands/pkg.js TAP delete nested field > should delete nested fields from package.json 1` ] = `
14+ exports [ `test/lib/commands/pkg.js TAP delete delete nested field > should delete nested fields from package.json 1` ] = `
1515Object {
1616 "info": Object {
1717 "foo": Object {
@@ -25,7 +25,7 @@ Object {
2525}
2626`
2727
28- exports [ `test/lib/commands/pkg.js TAP delete single field > should delete single field from package.json 1` ] = `
28+ exports [ `test/lib/commands/pkg.js TAP delete delete single field > should delete single field from package.json 1` ] = `
2929Object {
3030 "name": "foo",
3131}
@@ -39,59 +39,58 @@ Object {
3939`
4040
4141exports [ `test/lib/commands/pkg.js TAP get array field > should print retrieved array field 1` ] = `
42- [
43- "index.js",
44- "cli.js"
45- ]
42+ [ 'index.js', 'cli.js' ]
4643`
4744
4845exports [ `test/lib/commands/pkg.js TAP get array item > should print retrieved array field 1` ] = `
49-
46+ index.js
5047`
5148
52- exports [ `test/lib/commands/pkg.js TAP get array nested items notation > should print json result containing matching results 1` ] = `
49+ exports [ `test/lib/commands/pkg.js TAP get json no args > should print package. json content 1` ] = `
5350{
54- "contributors[0]. name": "Ruy ",
55- "contributors[1].name ": "Gar "
51+ "name": "foo ",
52+ "version ": "1.1.1 "
5653}
5754`
5855
59- exports [ `test/lib/commands/pkg.js TAP get multiple arg > should print retrieved package.json fields 1` ] = `
56+ exports [ `test/lib/commands/pkg.js TAP get json with args > should print package.json content 1` ] = `
6057{
61- "name": "foo",
62- "version": "1.1.1"
58+ "name": "foo"
6359}
6460`
6561
62+ exports [ `test/lib/commands/pkg.js TAP get multiple arg > should print retrieved package.json fields 1` ] = `
63+ name = 'foo'
64+ version = '1.1.1'
65+ `
66+
6667exports [ `test/lib/commands/pkg.js TAP get multiple arg with empty value > should print retrieved package.json field regardless of empty value 1` ] = `
67- {
68- "name": "foo",
69- "author": ""
70- }
68+ name = 'foo'
69+ author = ''
7170`
7271
7372exports [ `test/lib/commands/pkg.js TAP get multiple arg with only one arg existing > should print retrieved package.json field 1` ] = `
74- {
75- "name": "foo"
76- }
73+ name = 'foo'
7774`
7875
7976exports [ `test/lib/commands/pkg.js TAP get nested arg > node test.js 1` ] = `
80- " node test.js"
77+ node test.js
8178`
8279
8380exports [ `test/lib/commands/pkg.js TAP get no args > should print package.json content 1` ] = `
84- {
85- "name": "foo",
86- "version": "1.1.1"
87- }
81+ name = 'foo'
82+ version = '1.1.1'
83+ `
84+
85+ exports [ `test/lib/commands/pkg.js TAP get non string > should print retrieved package.json field 1` ] = `
86+ { '@npmcli/test': '*' }
8887`
8988
9089exports [ `test/lib/commands/pkg.js TAP get single arg > should print retrieved package.json field 1` ] = `
91- " 1.1.1"
90+ 1.1.1
9291`
9392
94- exports [ `test/lib/commands/pkg.js TAP push to array syntax > should append to arrays using empty bracket syntax 1` ] = `
93+ exports [ `test/lib/commands/pkg.js TAP set push to array syntax > should append to arrays using empty bracket syntax 1` ] = `
9594Object {
9695 "keywords": Array [
9796 "foo",
@@ -103,7 +102,7 @@ Object {
103102}
104103`
105104
106- exports [ `test/lib/commands/pkg.js TAP set --json > should add fields to package.json 1` ] = `
105+ exports [ `test/lib/commands/pkg.js TAP set set --json > should add fields to package.json 1` ] = `
107106Object {
108107 "description": "awesome",
109108 "foo": Object {
@@ -123,7 +122,7 @@ Object {
123122}
124123`
125124
126- exports [ `test/lib/commands/pkg.js TAP set = separate value > should add single field to package.json 1` ] = `
125+ exports [ `test/lib/commands/pkg.js TAP set set = separate value > should add single field to package.json 1` ] = `
127126Object {
128127 "name": "foo",
129128 "tap": Object {
@@ -135,7 +134,7 @@ Object {
135134}
136135`
137136
138- exports [ `test/lib/commands/pkg.js TAP set multiple fields > should add single field to package.json 1` ] = `
137+ exports [ `test/lib/commands/pkg.js TAP set set multiple fields > should add single field to package.json 1` ] = `
139138Object {
140139 "bin": Object {
141140 "foo": "foo.js",
@@ -148,7 +147,7 @@ Object {
148147}
149148`
150149
151- exports [ `test/lib/commands/pkg.js TAP set single field > should add single field to package.json 1` ] = `
150+ exports [ `test/lib/commands/pkg.js TAP set set single field > should add single field to package.json 1` ] = `
152151Object {
153152 "description": "Awesome stuff",
154153 "name": "foo",
@@ -157,21 +156,22 @@ Object {
157156`
158157
159158exports [ `test/lib/commands/pkg.js TAP single workspace multiple args > should only return info for one workspace 1` ] = `
160- {
161- "a": {
162- "name": "a",
163- "version": "1.0.0"
164- }
165- }
159+ a name = 'a'
160+ a version = '1.0.0'
166161`
167162
168163exports [ `test/lib/commands/pkg.js TAP single workspace single arg > should only return info for one workspace 1` ] = `
169- {
170- "a": "1.0.0"
171- }
164+ a 1.0.0
172165`
173166
174167exports [ `test/lib/commands/pkg.js TAP workspaces get > should return expected result for configured workspaces 1` ] = `
168+ a name = 'a'
169+ a version = '1.0.0'
170+ b name = 'b'
171+ b version = '1.2.3'
172+ `
173+
174+ exports [ `test/lib/commands/pkg.js TAP workspaces get json > should return expected json result for configured workspaces 1` ] = `
175175{
176176 "a": {
177177 "name": "a",
0 commit comments