• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
10green@1.0.0 | ACME | deps: 2 | versions: 2
11green is a very important color
12
13DEPRECATED!! - true
14
15keywords: colors, green, crayola
16
17bin: green
18
19dist
20.tarball: http://hm.green.com/1.0.0.tgz
21.shasum: 123
22.integrity: ---
23.unpackedSize: 1.0 GB
24
25dependencies:
26red: 1.0.0
27yellow: 1.0.0
28
29maintainers:
30- claudia <c@yellow.com>
31- isaacs <i@yellow.com>
32
33dist-tags:
34latest: 1.0.0
35`
36
37exports[`test/lib/commands/view.js TAP deprecated package with unicode > must match snapshot 1`] = `
38
39green@1.0.0 | ACME | deps: 2 | versions: 2
40green is a very important color
41
42DEPRECATED ⚠️  - true
43
44keywords: colors, green, crayola
45
46bin: green
47
48dist
49.tarball: http://hm.green.com/1.0.0.tgz
50.shasum: 123
51.integrity: ---
52.unpackedSize: 1.0 GB
53
54dependencies:
55red: 1.0.0
56yellow: 1.0.0
57
58maintainers:
59- claudia <c@yellow.com>
60- isaacs <i@yellow.com>
61
62dist-tags:
63latest: 1.0.0
64`
65
66exports[`test/lib/commands/view.js TAP package from git > must match snapshot 1`] = `
67
68green@1.0.0 | ACME | deps: 2 | versions: 2
69green is a very important color
70
71DEPRECATED!! - true
72
73keywords: colors, green, crayola
74
75bin: green
76
77dist
78.tarball: http://hm.green.com/1.0.0.tgz
79.shasum: 123
80.integrity: ---
81.unpackedSize: 1.0 GB
82
83dependencies:
84red: 1.0.0
85yellow: 1.0.0
86
87maintainers:
88- claudia <c@yellow.com>
89- isaacs <i@yellow.com>
90
91dist-tags:
92latest: 1.0.0
93`
94
95exports[`test/lib/commands/view.js TAP package in cwd directory > must match snapshot 1`] = `
96
97blue@1.0.0 | Proprietary | deps: none | versions: 2
98
99dist
100.tarball: http://hm.blue.com/1.0.0.tgz
101.shasum: 123
102.integrity: ---
103.unpackedSize: 1 B
104
105dist-tags:
106latest: 1.0.0
107
108published {TIME} ago
109`
110
111exports[`test/lib/commands/view.js TAP package in cwd non-specific version > must match snapshot 1`] = `
112
113blue@1.0.0 | Proprietary | deps: none | versions: 2
114
115dist
116.tarball: http://hm.blue.com/1.0.0.tgz
117.shasum: 123
118.integrity: ---
119.unpackedSize: 1 B
120
121dist-tags:
122latest: 1.0.0
123
124published {TIME} ago
125`
126
127exports[`test/lib/commands/view.js TAP package in cwd specific version > must match snapshot 1`] = `
128
129blue@1.0.0 | Proprietary | deps: none | versions: 2
130
131dist
132.tarball: http://hm.blue.com/1.0.0.tgz
133.shasum: 123
134.integrity: ---
135.unpackedSize: 1 B
136
137dist-tags:
138latest: 1.0.0
139
140published {TIME} ago
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
180orange@1.0.0 | Proprietary | deps: none | versions: 2
181http://hm.orange.com
182
183dist
184.tarball: http://hm.orange.com/1.0.0.tgz
185.shasum: 123
186.integrity: ---
187.unpackedSize: 1 B
188
189dist-tags:
190latest: 1.0.0
191`
192
193exports[`test/lib/commands/view.js TAP package with invalid version > must match snapshot 1`] = `
194[ '1.0.0', '1.0.1' ]
195`
196
197exports[`test/lib/commands/view.js TAP package with maintainers info as object > must match snapshot 1`] = `
198
199pink@1.0.0 | Proprietary | deps: none | versions: 2
200
201dist
202.tarball: http://hm.pink.com/1.0.0.tgz
203.shasum: 123
204.integrity: ---
205.unpackedSize: 1 B
206
207dist-tags:
208latest: 1.0.0
209`
210
211exports[`test/lib/commands/view.js TAP package with more than 25 deps > must match snapshot 1`] = `
212
213black@1.0.0 | Proprietary | deps: 25 | versions: 2
214
215dist
216.tarball: http://hm.black.com/1.0.0.tgz
217.shasum: 123
218.integrity: ---
219.unpackedSize: 1 B
220
221dependencies:
2220: 1.0.0
22310: 1.0.0
22411: 1.0.0
22512: 1.0.0
22613: 1.0.0
22714: 1.0.0
22815: 1.0.0
22916: 1.0.0
23017: 1.0.0
23118: 1.0.0
23219: 1.0.0
2331: 1.0.0
23420: 1.0.0
23521: 1.0.0
23622: 1.0.0
23723: 1.0.0
2382: 1.0.0
2393: 1.0.0
2404: 1.0.0
2415: 1.0.0
2426: 1.0.0
2437: 1.0.0
2448: 1.0.0
2459: 1.0.0
246(...and 1 more.)
247
248dist-tags:
249latest: 1.0.0
250`
251
252exports[`test/lib/commands/view.js TAP package with no modified time > must match snapshot 1`] = `
253
254cyan@1.0.0 | Proprietary | deps: none | versions: 2
255
256dist
257.tarball: http://hm.cyan.com/1.0.0.tgz
258.shasum: 123
259.integrity: ---
260.unpackedSize: 1.0 MB
261
262dist-tags:
263latest: 1.0.0
264
265published by claudia <claudia@cyan.com>
266`
267
268exports[`test/lib/commands/view.js TAP package with no repo or homepage > must match snapshot 1`] = `
269
270blue@1.0.0 | Proprietary | deps: none | versions: 2
271
272dist
273.tarball: http://hm.blue.com/1.0.0.tgz
274.shasum: 123
275.integrity: ---
276.unpackedSize: 1 B
277
278dist-tags:
279latest: 1.0.0
280
281published {TIME} ago
282`
283
284exports[`test/lib/commands/view.js TAP package with semver range > must match snapshot 1`] = `
285
286blue@1.0.0 | Proprietary | deps: none | versions: 2
287
288dist
289.tarball: http://hm.blue.com/1.0.0.tgz
290.shasum: 123
291.integrity: ---
292.unpackedSize: 1 B
293
294dist-tags:
295latest: 1.0.0
296
297published {TIME} ago
298
299blue@1.0.1 | Proprietary | deps: none | versions: 2
300
301dist
302.tarball: http://hm.blue.com/1.0.1.tgz
303.shasum: 124
304.integrity: ---
305.unpackedSize: 1.0 kB
306
307dist-tags:
308latest: 1.0.0
309
310published over a year from now
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
438green@1.0.0 | ACME | deps: 2 | versions: 2
439green is a very important color
440
441DEPRECATED!! - true
442
443keywords: colors, green, crayola
444
445bin: green
446
447dist
448.tarball: http://hm.green.com/1.0.0.tgz
449.shasum: 123
450.integrity: ---
451.unpackedSize: 1.0 GB
452
453dependencies:
454red: 1.0.0
455yellow: 1.0.0
456
457maintainers:
458- claudia <c@yellow.com>
459- isaacs <i@yellow.com>
460
461dist-tags:
462latest: 1.0.0
463
464orange@1.0.0 | Proprietary | deps: none | versions: 2
465http://hm.orange.com
466
467dist
468.tarball: http://hm.orange.com/1.0.0.tgz
469.shasum: 123
470.integrity: ---
471.unpackedSize: 1 B
472
473dist-tags:
474latest: 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
502green@1.0.0 | ACME | deps: 2 | versions: 2
503green is a very important color
504
505DEPRECATED!! - true
506
507keywords: colors, green, crayola
508
509bin: green
510
511dist
512.tarball: http://hm.green.com/1.0.0.tgz
513.shasum: 123
514.integrity: ---
515.unpackedSize: 1.0 GB
516
517dependencies:
518red: 1.0.0
519yellow: 1.0.0
520
521maintainers:
522- claudia <c@yellow.com>
523- isaacs <i@yellow.com>
524
525dist-tags:
526latest: 1.0.0
527`
528
529exports[`test/lib/commands/view.js TAP workspaces remote package name > must match snapshot 1`] = `
530
531pink@1.0.0 | Proprietary | deps: none | versions: 2
532
533dist
534.tarball: http://hm.pink.com/1.0.0.tgz
535.shasum: 123
536.integrity: ---
537.unpackedSize: 1 B
538
539dist-tags:
540latest: 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