1/* IMPORTANT
2 * This snapshot file is auto-generated, but designed for humans.
3 * It should be checked into source control and tracked carefully.
4 * Re-generate by setting TAP_SNAPSHOT=1 and running tests.
5 * Make sure to inspect the output below.  Do not ignore changes!
6 */
7'use strict'
8exports[`test/lib/commands/view.js TAP deprecated package with license, bugs, repository and other fields > must match snapshot 1`] = `
9
10[4m[1m[32mgreen[39m@[32m1.0.0[39m[22m[24m | [32mACME[39m | deps: [36m2[39m | versions: [33m2[39m
11green is a very important color
12
13[1m[31mDEPRECATED[39m[22m!! - true
14
15keywords: [33mcolors, green, crayola[39m
16
17bin: [33mgreen[39m
18
19dist
20.tarball: [36mhttp://hm.green.com/1.0.0.tgz[39m
21.shasum: [33m123[39m
22.integrity: [33m---[39m
23.unpackedSize: [33m1.0 GB[39m
24
25dependencies:
26[33mred[39m: 1.0.0
27[33myellow[39m: 1.0.0
28
29maintainers:
30- [33mclaudia[39m <[36mc@yellow.com[39m>
31- [33misaacs[39m <[36mi@yellow.com[39m>
32
33dist-tags:
34[1m[32mlatest[39m[22m: 1.0.0
35`
36
37exports[`test/lib/commands/view.js TAP deprecated package with unicode > must match snapshot 1`] = `
38
39[4m[1m[32mgreen[39m@[32m1.0.0[39m[22m[24m | [32mACME[39m | deps: [36m2[39m | versions: [33m2[39m
40green is a very important color
41
42[1m[31mDEPRECATED[39m[22m ⚠️  - true
43
44keywords: [33mcolors, green, crayola[39m
45
46bin: [33mgreen[39m
47
48dist
49.tarball: [36mhttp://hm.green.com/1.0.0.tgz[39m
50.shasum: [33m123[39m
51.integrity: [33m---[39m
52.unpackedSize: [33m1.0 GB[39m
53
54dependencies:
55[33mred[39m: 1.0.0
56[33myellow[39m: 1.0.0
57
58maintainers:
59- [33mclaudia[39m <[36mc@yellow.com[39m>
60- [33misaacs[39m <[36mi@yellow.com[39m>
61
62dist-tags:
63[1m[32mlatest[39m[22m: 1.0.0
64`
65
66exports[`test/lib/commands/view.js TAP package from git > must match snapshot 1`] = `
67
68[4m[1m[32mgreen[39m@[32m1.0.0[39m[22m[24m | [32mACME[39m | deps: [36m2[39m | versions: [33m2[39m
69green is a very important color
70
71[1m[31mDEPRECATED[39m[22m!! - true
72
73keywords: [33mcolors, green, crayola[39m
74
75bin: [33mgreen[39m
76
77dist
78.tarball: [36mhttp://hm.green.com/1.0.0.tgz[39m
79.shasum: [33m123[39m
80.integrity: [33m---[39m
81.unpackedSize: [33m1.0 GB[39m
82
83dependencies:
84[33mred[39m: 1.0.0
85[33myellow[39m: 1.0.0
86
87maintainers:
88- [33mclaudia[39m <[36mc@yellow.com[39m>
89- [33misaacs[39m <[36mi@yellow.com[39m>
90
91dist-tags:
92[1m[32mlatest[39m[22m: 1.0.0
93`
94
95exports[`test/lib/commands/view.js TAP package in cwd directory > must match snapshot 1`] = `
96
97[4m[1m[32mblue[39m@[32m1.0.0[39m[22m[24m | [1m[31mProprietary[39m[22m | deps: [32mnone[39m | versions: [33m2[39m
98
99dist
100.tarball: [36mhttp://hm.blue.com/1.0.0.tgz[39m
101.shasum: [33m123[39m
102.integrity: [33m---[39m
103.unpackedSize: [33m1 B[39m
104
105dist-tags:
106[1m[32mlatest[39m[22m: 1.0.0
107
108published {TIME} ago[39m
109`
110
111exports[`test/lib/commands/view.js TAP package in cwd non-specific version > must match snapshot 1`] = `
112
113[4m[1m[32mblue[39m@[32m1.0.0[39m[22m[24m | [1m[31mProprietary[39m[22m | deps: [32mnone[39m | versions: [33m2[39m
114
115dist
116.tarball: [36mhttp://hm.blue.com/1.0.0.tgz[39m
117.shasum: [33m123[39m
118.integrity: [33m---[39m
119.unpackedSize: [33m1 B[39m
120
121dist-tags:
122[1m[32mlatest[39m[22m: 1.0.0
123
124published {TIME} ago[39m
125`
126
127exports[`test/lib/commands/view.js TAP package in cwd specific version > must match snapshot 1`] = `
128
129[4m[1m[32mblue[39m@[32m1.0.0[39m[22m[24m | [1m[31mProprietary[39m[22m | deps: [32mnone[39m | versions: [33m2[39m
130
131dist
132.tarball: [36mhttp://hm.blue.com/1.0.0.tgz[39m
133.shasum: [33m123[39m
134.integrity: [33m---[39m
135.unpackedSize: [33m1 B[39m
136
137dist-tags:
138[1m[32mlatest[39m[22m: 1.0.0
139
140published {TIME} ago[39m
141`
142
143exports[`test/lib/commands/view.js TAP package with --json and semver range > must match snapshot 1`] = `
144[
145  {
146    "_npmUser": "claudia <claudia@cyan.com>",
147    "name": "cyan",
148    "dist-tags": {
149      "latest": "1.0.0"
150    },
151    "versions": [
152      "1.0.0",
153      "1.0.1"
154    ],
155    "version": "1.0.0",
156    "dist": {
157      "shasum": "123",
158      "tarball": "http://hm.cyan.com/1.0.0.tgz",
159      "integrity": "---",
160      "fileCount": 1,
161      "unpackedSize": 1000000
162    }
163  },
164  {
165    "_npmUser": "claudia <claudia@cyan.com>",
166    "name": "cyan",
167    "dist-tags": {
168      "latest": "1.0.0"
169    },
170    "versions": [
171      "1.0.0",
172      "1.0.1"
173    ]
174  }
175]
176`
177
178exports[`test/lib/commands/view.js TAP package with homepage > must match snapshot 1`] = `
179
180[4m[1m[32morange[39m@[32m1.0.0[39m[22m[24m | [1m[31mProprietary[39m[22m | deps: [32mnone[39m | versions: [33m2[39m
181[36mhttp://hm.orange.com[39m
182
183dist
184.tarball: [36mhttp://hm.orange.com/1.0.0.tgz[39m
185.shasum: [33m123[39m
186.integrity: [33m---[39m
187.unpackedSize: [33m1 B[39m
188
189dist-tags:
190[1m[32mlatest[39m[22m: 1.0.0
191`
192
193exports[`test/lib/commands/view.js TAP package with invalid version > must match snapshot 1`] = `
194[ [32m'1.0.0'[39m, [32m'1.0.1'[39m ]
195`
196
197exports[`test/lib/commands/view.js TAP package with maintainers info as object > must match snapshot 1`] = `
198
199[4m[1m[32mpink[39m@[32m1.0.0[39m[22m[24m | [1m[31mProprietary[39m[22m | deps: [32mnone[39m | versions: [33m2[39m
200
201dist
202.tarball: [36mhttp://hm.pink.com/1.0.0.tgz[39m
203.shasum: [33m123[39m
204.integrity: [33m---[39m
205.unpackedSize: [33m1 B[39m
206
207dist-tags:
208[1m[32mlatest[39m[22m: 1.0.0
209`
210
211exports[`test/lib/commands/view.js TAP package with more than 25 deps > must match snapshot 1`] = `
212
213[4m[1m[32mblack[39m@[32m1.0.0[39m[22m[24m | [1m[31mProprietary[39m[22m | deps: [36m25[39m | versions: [33m2[39m
214
215dist
216.tarball: [36mhttp://hm.black.com/1.0.0.tgz[39m
217.shasum: [33m123[39m
218.integrity: [33m---[39m
219.unpackedSize: [33m1 B[39m
220
221dependencies:
222[33m0[39m: 1.0.0
223[33m10[39m: 1.0.0
224[33m11[39m: 1.0.0
225[33m12[39m: 1.0.0
226[33m13[39m: 1.0.0
227[33m14[39m: 1.0.0
228[33m15[39m: 1.0.0
229[33m16[39m: 1.0.0
230[33m17[39m: 1.0.0
231[33m18[39m: 1.0.0
232[33m19[39m: 1.0.0
233[33m1[39m: 1.0.0
234[33m20[39m: 1.0.0
235[33m21[39m: 1.0.0
236[33m22[39m: 1.0.0
237[33m23[39m: 1.0.0
238[33m2[39m: 1.0.0
239[33m3[39m: 1.0.0
240[33m4[39m: 1.0.0
241[33m5[39m: 1.0.0
242[33m6[39m: 1.0.0
243[33m7[39m: 1.0.0
244[33m8[39m: 1.0.0
245[33m9[39m: 1.0.0
246(...and 1 more.)
247
248dist-tags:
249[1m[32mlatest[39m[22m: 1.0.0
250`
251
252exports[`test/lib/commands/view.js TAP package with no modified time > must match snapshot 1`] = `
253
254[4m[1m[32mcyan[39m@[32m1.0.0[39m[22m[24m | [1m[31mProprietary[39m[22m | deps: [32mnone[39m | versions: [33m2[39m
255
256dist
257.tarball: [36mhttp://hm.cyan.com/1.0.0.tgz[39m
258.shasum: [33m123[39m
259.integrity: [33m---[39m
260.unpackedSize: [33m1.0 MB[39m
261
262dist-tags:
263[1m[32mlatest[39m[22m: 1.0.0
264
265published by [33mclaudia[39m <[36mclaudia@cyan.com[39m>
266`
267
268exports[`test/lib/commands/view.js TAP package with no repo or homepage > must match snapshot 1`] = `
269
270[4m[1m[32mblue[39m@[32m1.0.0[39m[22m[24m | [1m[31mProprietary[39m[22m | deps: [32mnone[39m | versions: [33m2[39m
271
272dist
273.tarball: [36mhttp://hm.blue.com/1.0.0.tgz[39m
274.shasum: [33m123[39m
275.integrity: [33m---[39m
276.unpackedSize: [33m1 B[39m
277
278dist-tags:
279[1m[32mlatest[39m[22m: 1.0.0
280
281published {TIME} ago[39m
282`
283
284exports[`test/lib/commands/view.js TAP package with semver range > must match snapshot 1`] = `
285
286[4m[1m[32mblue[39m@[32m1.0.0[39m[22m[24m | [1m[31mProprietary[39m[22m | deps: [32mnone[39m | versions: [33m2[39m
287
288dist
289.tarball: [36mhttp://hm.blue.com/1.0.0.tgz[39m
290.shasum: [33m123[39m
291.integrity: [33m---[39m
292.unpackedSize: [33m1 B[39m
293
294dist-tags:
295[1m[32mlatest[39m[22m: 1.0.0
296
297published {TIME} ago[39m
298
299[4m[1m[32mblue[39m@[32m1.0.1[39m[22m[24m | [1m[31mProprietary[39m[22m | deps: [32mnone[39m | versions: [33m2[39m
300
301dist
302.tarball: [36mhttp://hm.blue.com/1.0.1.tgz[39m
303.shasum: [33m124[39m
304.integrity: [33m---[39m
305.unpackedSize: [33m1.0 kB[39m
306
307dist-tags:
308[1m[32mlatest[39m[22m: 1.0.0
309
310published [33mover a year from now[39m
311`
312
313exports[`test/lib/commands/view.js TAP specific field names array field - 1 element > must match snapshot 1`] = `
314claudia
315`
316
317exports[`test/lib/commands/view.js TAP specific field names array field - 2 elements > must match snapshot 1`] = `
318maintainers[0].name = 'claudia'
319maintainers[1].name = 'isaacs'
320`
321
322exports[`test/lib/commands/view.js TAP specific field names fields with empty values > must match snapshot 1`] = `
323
324`
325
326exports[`test/lib/commands/view.js TAP specific field names maintainers with email > must match snapshot 1`] = `
327maintainers = [
328  { name: 'claudia', email: 'c@yellow.com', twitter: 'cyellow' },
329  { name: 'isaacs', email: 'i@yellow.com', twitter: 'iyellow' }
330]
331name = 'yellow'
332`
333
334exports[`test/lib/commands/view.js TAP specific field names maintainers with url > must match snapshot 1`] = `
335[ 'claudia (http://c.pink.com)', 'isaacs (http://i.pink.com)' ]
336`
337
338exports[`test/lib/commands/view.js TAP specific field names nested field with brackets > must match snapshot 1`] = `
339123
340`
341
342exports[`test/lib/commands/view.js TAP specific field names readme > must match snapshot 1`] = `
343a very useful readme
344`
345
346exports[`test/lib/commands/view.js TAP specific field names several fields > must match snapshot 1`] = `
347name = 'yellow'
348version = '1.0.0'
349`
350
351exports[`test/lib/commands/view.js TAP specific field names several fields with several versions > must match snapshot 1`] = `
352yellow@1.0.0 'claudia'
353yellow@1.0.1 'claudia'
354yellow@1.0.2 'claudia'
355`
356
357exports[`test/lib/commands/view.js TAP workspaces all workspaces --json > must match snapshot 1`] = `
358{
359  "green": {
360    "_id": "green",
361    "name": "green",
362    "dist-tags": {
363      "latest": "1.0.0"
364    },
365    "maintainers": [
366      {
367        "name": "claudia",
368        "email": "c@yellow.com",
369        "twitter": "cyellow"
370      },
371      {
372        "name": "isaacs",
373        "email": "i@yellow.com",
374        "twitter": "iyellow"
375      }
376    ],
377    "keywords": [
378      "colors",
379      "green",
380      "crayola"
381    ],
382    "versions": [
383      "1.0.0",
384      "1.0.1"
385    ],
386    "version": "1.0.0",
387    "description": "green is a very important color",
388    "bugs": {
389      "url": "http://bugs.green.com"
390    },
391    "deprecated": true,
392    "repository": {
393      "url": "http://repository.green.com"
394    },
395    "license": {
396      "type": "ACME"
397    },
398    "bin": {
399      "green": "bin/green.js"
400    },
401    "dependencies": {
402      "red": "1.0.0",
403      "yellow": "1.0.0"
404    },
405    "dist": {
406      "shasum": "123",
407      "tarball": "http://hm.green.com/1.0.0.tgz",
408      "integrity": "---",
409      "fileCount": 1,
410      "unpackedSize": 1000000000
411    }
412  },
413  "orange": {
414    "name": "orange",
415    "dist-tags": {
416      "latest": "1.0.0"
417    },
418    "versions": [
419      "1.0.0",
420      "1.0.1"
421    ],
422    "version": "1.0.0",
423    "homepage": "http://hm.orange.com",
424    "license": {},
425    "dist": {
426      "shasum": "123",
427      "tarball": "http://hm.orange.com/1.0.0.tgz",
428      "integrity": "---",
429      "fileCount": 1,
430      "unpackedSize": 1
431    }
432  }
433}
434`
435
436exports[`test/lib/commands/view.js TAP workspaces all workspaces > must match snapshot 1`] = `
437
438[4m[1m[32mgreen[39m@[32m1.0.0[39m[22m[24m | [32mACME[39m | deps: [36m2[39m | versions: [33m2[39m
439green is a very important color
440
441[1m[31mDEPRECATED[39m[22m!! - true
442
443keywords: [33mcolors, green, crayola[39m
444
445bin: [33mgreen[39m
446
447dist
448.tarball: [36mhttp://hm.green.com/1.0.0.tgz[39m
449.shasum: [33m123[39m
450.integrity: [33m---[39m
451.unpackedSize: [33m1.0 GB[39m
452
453dependencies:
454[33mred[39m: 1.0.0
455[33myellow[39m: 1.0.0
456
457maintainers:
458- [33mclaudia[39m <[36mc@yellow.com[39m>
459- [33misaacs[39m <[36mi@yellow.com[39m>
460
461dist-tags:
462[1m[32mlatest[39m[22m: 1.0.0
463
464[4m[1m[32morange[39m@[32m1.0.0[39m[22m[24m | [1m[31mProprietary[39m[22m | deps: [32mnone[39m | versions: [33m2[39m
465[36mhttp://hm.orange.com[39m
466
467dist
468.tarball: [36mhttp://hm.orange.com/1.0.0.tgz[39m
469.shasum: [33m123[39m
470.integrity: [33m---[39m
471.unpackedSize: [33m1 B[39m
472
473dist-tags:
474[1m[32mlatest[39m[22m: 1.0.0
475`
476
477exports[`test/lib/commands/view.js TAP workspaces all workspaces nonexistent field --json > must match snapshot 1`] = `
478
479`
480
481exports[`test/lib/commands/view.js TAP workspaces all workspaces nonexistent field > must match snapshot 1`] = `
482green:
483orange:
484`
485
486exports[`test/lib/commands/view.js TAP workspaces all workspaces single field --json > must match snapshot 1`] = `
487{
488  "green": "green",
489  "orange": "orange"
490}
491`
492
493exports[`test/lib/commands/view.js TAP workspaces all workspaces single field > must match snapshot 1`] = `
494green:
495green
496orange:
497orange
498`
499
500exports[`test/lib/commands/view.js TAP workspaces one specific workspace > must match snapshot 1`] = `
501
502[4m[1m[32mgreen[39m@[32m1.0.0[39m[22m[24m | [32mACME[39m | deps: [36m2[39m | versions: [33m2[39m
503green is a very important color
504
505[1m[31mDEPRECATED[39m[22m!! - true
506
507keywords: [33mcolors, green, crayola[39m
508
509bin: [33mgreen[39m
510
511dist
512.tarball: [36mhttp://hm.green.com/1.0.0.tgz[39m
513.shasum: [33m123[39m
514.integrity: [33m---[39m
515.unpackedSize: [33m1.0 GB[39m
516
517dependencies:
518[33mred[39m: 1.0.0
519[33myellow[39m: 1.0.0
520
521maintainers:
522- [33mclaudia[39m <[36mc@yellow.com[39m>
523- [33misaacs[39m <[36mi@yellow.com[39m>
524
525dist-tags:
526[1m[32mlatest[39m[22m: 1.0.0
527`
528
529exports[`test/lib/commands/view.js TAP workspaces remote package name > must match snapshot 1`] = `
530
531[4m[1m[32mpink[39m@[32m1.0.0[39m[22m[24m | [1m[31mProprietary[39m[22m | deps: [32mnone[39m | versions: [33m2[39m
532
533dist
534.tarball: [36mhttp://hm.pink.com/1.0.0.tgz[39m
535.shasum: [33m123[39m
536.integrity: [33m---[39m
537.unpackedSize: [33m1 B[39m
538
539dist-tags:
540[1m[32mlatest[39m[22m: 1.0.0
541`
542
543exports[`test/lib/commands/view.js TAP workspaces remote package name > should have warning of ignoring workspaces 1`] = `
544Array [
545  Array [
546    "Ignoring workspaces for specified package(s)",
547  ],
548]
549`
550
551exports[`test/lib/commands/view.js TAP workspaces single workspace --json > must match snapshot 1`] = `
552{
553  "green": {
554    "_id": "green",
555    "name": "green",
556    "dist-tags": {
557      "latest": "1.0.0"
558    },
559    "maintainers": [
560      {
561        "name": "claudia",
562        "email": "c@yellow.com",
563        "twitter": "cyellow"
564      },
565      {
566        "name": "isaacs",
567        "email": "i@yellow.com",
568        "twitter": "iyellow"
569      }
570    ],
571    "keywords": [
572      "colors",
573      "green",
574      "crayola"
575    ],
576    "versions": [
577      "1.0.0",
578      "1.0.1"
579    ],
580    "version": "1.0.0",
581    "description": "green is a very important color",
582    "bugs": {
583      "url": "http://bugs.green.com"
584    },
585    "deprecated": true,
586    "repository": {
587      "url": "http://repository.green.com"
588    },
589    "license": {
590      "type": "ACME"
591    },
592    "bin": {
593      "green": "bin/green.js"
594    },
595    "dependencies": {
596      "red": "1.0.0",
597      "yellow": "1.0.0"
598    },
599    "dist": {
600      "shasum": "123",
601      "tarball": "http://hm.green.com/1.0.0.tgz",
602      "integrity": "---",
603      "fileCount": 1,
604      "unpackedSize": 1000000000
605    }
606  }
607}
608`
609