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,63 @@ 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` ] = `
53- {
54- "contributors[0].name": "Ruy",
55- "contributors[1].name": "Gar"
56- }
49+ exports [ `test/lib/commands/pkg.js TAP get get array nested items notation > should print json result containing matching results 1` ] = `
50+ contributors[0].name = 'Ruy'
51+ contributors[1].name = 'Gar'
5752`
5853
59- exports [ `test/lib/commands/pkg.js TAP get multiple arg > should print retrieved package.json fields 1` ] = `
54+ exports [ `test/lib/commands/pkg.js TAP get json no args > should print package.json content 1` ] = `
6055{
6156 "name": "foo",
6257 "version": "1.1.1"
6358}
6459`
6560
66- exports [ `test/lib/commands/pkg.js TAP get multiple arg with empty value > should print retrieved package.json field regardless of empty value 1` ] = `
61+ exports [ `test/lib/commands/pkg.js TAP get json with args > should print package.json content 1` ] = `
6762{
68- "name": "foo",
69- "author": ""
63+ "name": "foo"
7064}
7165`
7266
67+ exports [ `test/lib/commands/pkg.js TAP get multiple arg > should print retrieved package.json fields 1` ] = `
68+ name = 'foo'
69+ version = '1.1.1'
70+ `
71+
72+ exports [ `test/lib/commands/pkg.js TAP get multiple arg with empty value > should print retrieved package.json field regardless of empty value 1` ] = `
73+ name = 'foo'
74+ author = ''
75+ `
76+
7377exports [ `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- }
78+ name = 'foo'
7779`
7880
7981exports [ `test/lib/commands/pkg.js TAP get nested arg > node test.js 1` ] = `
80- " node test.js"
82+ node test.js
8183`
8284
8385exports [ `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- }
86+ name = 'foo'
87+ version = '1.1.1'
88+ `
89+
90+ exports [ `test/lib/commands/pkg.js TAP get non string > should print retrieved package.json field 1` ] = `
91+ { '@npmcli/test': '*' }
8892`
8993
9094exports [ `test/lib/commands/pkg.js TAP get single arg > should print retrieved package.json field 1` ] = `
91- " 1.1.1"
95+ 1.1.1
9296`
9397
94- exports [ `test/lib/commands/pkg.js TAP push to array syntax > should append to arrays using empty bracket syntax 1` ] = `
98+ exports [ `test/lib/commands/pkg.js TAP set push to array syntax > should append to arrays using empty bracket syntax 1` ] = `
9599Object {
96100 "keywords": Array [
97101 "foo",
@@ -103,7 +107,7 @@ Object {
103107}
104108`
105109
106- exports [ `test/lib/commands/pkg.js TAP set --json > should add fields to package.json 1` ] = `
110+ exports [ `test/lib/commands/pkg.js TAP set set --json > should add fields to package.json 1` ] = `
107111Object {
108112 "description": "awesome",
109113 "foo": Object {
@@ -123,7 +127,7 @@ Object {
123127}
124128`
125129
126- exports [ `test/lib/commands/pkg.js TAP set = separate value > should add single field to package.json 1` ] = `
130+ exports [ `test/lib/commands/pkg.js TAP set set = separate value > should add single field to package.json 1` ] = `
127131Object {
128132 "name": "foo",
129133 "tap": Object {
@@ -135,7 +139,7 @@ Object {
135139}
136140`
137141
138- exports [ `test/lib/commands/pkg.js TAP set multiple fields > should add single field to package.json 1` ] = `
142+ exports [ `test/lib/commands/pkg.js TAP set set multiple fields > should add single field to package.json 1` ] = `
139143Object {
140144 "bin": Object {
141145 "foo": "foo.js",
@@ -148,7 +152,7 @@ Object {
148152}
149153`
150154
151- exports [ `test/lib/commands/pkg.js TAP set single field > should add single field to package.json 1` ] = `
155+ exports [ `test/lib/commands/pkg.js TAP set set single field > should add single field to package.json 1` ] = `
152156Object {
153157 "description": "Awesome stuff",
154158 "name": "foo",
@@ -157,21 +161,22 @@ Object {
157161`
158162
159163exports [ `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- }
164+ a name = 'a'
165+ a version = '1.0.0'
166166`
167167
168168exports [ `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- }
169+ a 1.0.0
172170`
173171
174172exports [ `test/lib/commands/pkg.js TAP workspaces get > should return expected result for configured workspaces 1` ] = `
173+ a name = 'a'
174+ a version = '1.0.0'
175+ b name = 'b'
176+ b version = '1.2.3'
177+ `
178+
179+ exports [ `test/lib/commands/pkg.js TAP workspaces get json > should return expected json result for configured workspaces 1` ] = `
175180{
176181 "a": {
177182 "name": "a",
0 commit comments