/* IMPORTANT
 * This snapshot file is auto-generated, but designed for humans.
 * It should be checked into source control and tracked carefully.
 * Re-generate by setting TAP_SNAPSHOT=1 and running tests.
 * Make sure to inspect the output below.  Do not ignore changes!
 */
'use strict'
exports[`test/lib/commands/view.js TAP deprecated package with license, bugs, repository and other fields > must match snapshot 1`] = `

[4m[36mgreen@1.0.0[39m[24m | [32mACME[39m | deps: [36m2[39m | versions: [36m2[39m
green is a very important color

[91mDEPRECATED[39m!! - true

keywords: [36mcolors[39m, [36mgreen[39m, [36mcrayola[39m

bin: [36mgreen[39m

dist
.tarball: [34mhttp://hm.green.com/1.0.0.tgz[39m
.shasum: [32m123[39m
.integrity: [32m---[39m
.unpackedSize: [34m1.0 GB[39m

dependencies:
[34mred[39m: 1.0.0
[34myellow[39m: 1.0.0

maintainers:
- [34mclaudia[39m <[2mc@yellow.com[22m>
- [34misaacs[39m <[2mi@yellow.com[22m>

dist-tags:
[34mlatest[39m: 1.0.0
`

exports[`test/lib/commands/view.js TAP deprecated package with unicode > must match snapshot 1`] = `

[4m[36mgreen@1.0.0[39m[24m | [32mACME[39m | deps: [36m2[39m | versions: [36m2[39m
green is a very important color

[91mDEPRECATED[39m ⚠️  - true

keywords: [36mcolors[39m, [36mgreen[39m, [36mcrayola[39m

bin: [36mgreen[39m

dist
.tarball: [34mhttp://hm.green.com/1.0.0.tgz[39m
.shasum: [32m123[39m
.integrity: [32m---[39m
.unpackedSize: [34m1.0 GB[39m

dependencies:
[34mred[39m: 1.0.0
[34myellow[39m: 1.0.0

maintainers:
- [34mclaudia[39m <[2mc@yellow.com[22m>
- [34misaacs[39m <[2mi@yellow.com[22m>

dist-tags:
[34mlatest[39m: 1.0.0
`

exports[`test/lib/commands/view.js TAP package from git > must match snapshot 1`] = `

[4m[36mgreen@1.0.0[39m[24m | [32mACME[39m | deps: [36m2[39m | versions: [36m2[39m
green is a very important color

[91mDEPRECATED[39m!! - true

keywords: [36mcolors[39m, [36mgreen[39m, [36mcrayola[39m

bin: [36mgreen[39m

dist
.tarball: [34mhttp://hm.green.com/1.0.0.tgz[39m
.shasum: [32m123[39m
.integrity: [32m---[39m
.unpackedSize: [34m1.0 GB[39m

dependencies:
[34mred[39m: 1.0.0
[34myellow[39m: 1.0.0

maintainers:
- [34mclaudia[39m <[2mc@yellow.com[22m>
- [34misaacs[39m <[2mi@yellow.com[22m>

dist-tags:
[34mlatest[39m: 1.0.0
`

exports[`test/lib/commands/view.js TAP package in cwd directory > must match snapshot 1`] = `

[4m[36mblue@1.0.0[39m[24m | [31mProprietary[39m | deps: [36mnone[39m | versions: [36m2[39m

dist
.tarball: [34mhttp://hm.blue.com/1.0.0.tgz[39m
.shasum: [32m123[39m

dist-tags:
[34mlatest[39m: 1.0.0

published {TIME} ago[39m
`

exports[`test/lib/commands/view.js TAP package in cwd non-specific version > must match snapshot 1`] = `

[4m[36mblue@1.0.0[39m[24m | [31mProprietary[39m | deps: [36mnone[39m | versions: [36m2[39m

dist
.tarball: [34mhttp://hm.blue.com/1.0.0.tgz[39m
.shasum: [32m123[39m

dist-tags:
[34mlatest[39m: 1.0.0

published {TIME} ago[39m
`

exports[`test/lib/commands/view.js TAP package in cwd specific version > must match snapshot 1`] = `

[4m[36mblue@1.0.0[39m[24m | [31mProprietary[39m | deps: [36mnone[39m | versions: [36m2[39m

dist
.tarball: [34mhttp://hm.blue.com/1.0.0.tgz[39m
.shasum: [32m123[39m

dist-tags:
[34mlatest[39m: 1.0.0

published {TIME} ago[39m
`

exports[`test/lib/commands/view.js TAP package with --json and semver range > must match snapshot 1`] = `
[
  {
    "_npmUser": "claudia <claudia@cyan.com>",
    "name": "cyan",
    "dist-tags": {
      "latest": "1.0.0"
    },
    "versions": [
      "1.0.0",
      "1.0.1"
    ],
    "version": "1.0.0",
    "dist": {
      "shasum": "123",
      "tarball": "http://hm.cyan.com/1.0.0.tgz",
      "integrity": "---",
      "fileCount": 1,
      "unpackedSize": 1000000
    }
  },
  {
    "_npmUser": "claudia <claudia@cyan.com>",
    "name": "cyan",
    "dist-tags": {
      "latest": "1.0.0"
    },
    "versions": [
      "1.0.0",
      "1.0.1"
    ]
  }
]
`

exports[`test/lib/commands/view.js TAP package with homepage > must match snapshot 1`] = `

[4m[36morange@1.0.0[39m[24m | [31mProprietary[39m | deps: [36mnone[39m | versions: [36m2[39m
[34mhttp://hm.orange.com[39m

dist
.tarball: [34mhttp://hm.orange.com/1.0.0.tgz[39m
.shasum: [32m123[39m
.integrity: [32m---[39m
.unpackedSize: [34m1 B[39m

dist-tags:
[34mlatest[39m: 1.0.0
`

exports[`test/lib/commands/view.js TAP package with invalid version > must match snapshot 1`] = `
[ [32m'1.0.0'[39m, [32m'1.0.1'[39m ]
`

exports[`test/lib/commands/view.js TAP package with maintainers info as object > must match snapshot 1`] = `

[4m[36mpink@1.0.0[39m[24m | [31mProprietary[39m | deps: [36mnone[39m | versions: [36m2[39m

dist
.tarball: [34mhttp://hm.pink.com/1.0.0.tgz[39m
.shasum: [32m123[39m
.integrity: [32m---[39m
.unpackedSize: [34m1 B[39m

dist-tags:
[34mlatest[39m: 1.0.0
`

exports[`test/lib/commands/view.js TAP package with more than 25 deps > must match snapshot 1`] = `

[4m[36mblack@1.0.0[39m[24m | [31mProprietary[39m | deps: [36m25[39m | versions: [36m2[39m

dist
.tarball: [34mhttp://hm.black.com/1.0.0.tgz[39m
.shasum: [32m123[39m
.integrity: [32m---[39m
.unpackedSize: [34m1 B[39m

dependencies:
[34m0[39m: 1.0.0
[34m10[39m: 1.0.0
[34m11[39m: 1.0.0
[34m12[39m: 1.0.0
[34m13[39m: 1.0.0
[34m14[39m: 1.0.0
[34m15[39m: 1.0.0
[34m16[39m: 1.0.0
[34m17[39m: 1.0.0
[34m18[39m: 1.0.0
[34m19[39m: 1.0.0
[34m1[39m: 1.0.0
[34m20[39m: 1.0.0
[34m21[39m: 1.0.0
[34m22[39m: 1.0.0
[34m23[39m: 1.0.0
[34m2[39m: 1.0.0
[34m3[39m: 1.0.0
[34m4[39m: 1.0.0
[34m5[39m: 1.0.0
[34m6[39m: 1.0.0
[34m7[39m: 1.0.0
[34m8[39m: 1.0.0
[34m9[39m: 1.0.0
[2m(...and 1 more.)[22m

dist-tags:
[34mlatest[39m: 1.0.0
`

exports[`test/lib/commands/view.js TAP package with no modified time > must match snapshot 1`] = `

[4m[36mcyan@1.0.0[39m[24m | [31mProprietary[39m | deps: [36mnone[39m | versions: [36m2[39m

dist
.tarball: [34mhttp://hm.cyan.com/1.0.0.tgz[39m
.shasum: [32m123[39m
.integrity: [32m---[39m
.unpackedSize: [34m1.0 MB[39m

dist-tags:
[34mlatest[39m: 1.0.0

published by [34mclaudia[39m <[2mclaudia@cyan.com[22m>
`

exports[`test/lib/commands/view.js TAP package with no repo or homepage > must match snapshot 1`] = `

[4m[36mblue@1.0.0[39m[24m | [31mProprietary[39m | deps: [36mnone[39m | versions: [36m2[39m

dist
.tarball: [34mhttp://hm.blue.com/1.0.0.tgz[39m
.shasum: [32m123[39m

dist-tags:
[34mlatest[39m: 1.0.0

published {TIME} ago[39m
`

exports[`test/lib/commands/view.js TAP package with semver range > must match snapshot 1`] = `

[4m[36mblue@1.0.0[39m[24m | [31mProprietary[39m | deps: [36mnone[39m | versions: [36m2[39m

dist
.tarball: [34mhttp://hm.blue.com/1.0.0.tgz[39m
.shasum: [32m123[39m

dist-tags:
[34mlatest[39m: 1.0.0

published {TIME} ago[39m

[4m[36mblue@1.0.1[39m[24m | [31mProprietary[39m | deps: [36mnone[39m | versions: [36m2[39m

dist
.tarball: [34mhttp://hm.blue.com/1.0.1.tgz[39m
.shasum: [32m124[39m
.integrity: [32m---[39m
.unpackedSize: [34m1.0 kB[39m

dist-tags:
[34mlatest[39m: 1.0.0

published [36mover a year from now[39m
`

exports[`test/lib/commands/view.js TAP package with single version full json > must match snapshot 1`] = `
{
  "_id": "single-version",
  "name": "single-version",
  "dist-tags": {
    "latest": "1.0.0"
  },
  "versions": [
    "1.0.0"
  ],
  "version": "1.0.0",
  "dist": {
    "shasum": "123",
    "tarball": "http://hm.single-version.com/1.0.0.tgz",
    "fileCount": 1
  }
}
`

exports[`test/lib/commands/view.js TAP specific field names array field - 1 element > must match snapshot 1`] = `
claudia
`

exports[`test/lib/commands/view.js TAP specific field names array field - 2 elements > must match snapshot 1`] = `
maintainers[0].name = 'claudia'
maintainers[1].name = 'isaacs'
`

exports[`test/lib/commands/view.js TAP specific field names fields with empty values > must match snapshot 1`] = `

`

exports[`test/lib/commands/view.js TAP specific field names maintainers with email > must match snapshot 1`] = `
maintainers = [
  { name: 'claudia', email: 'c@yellow.com', twitter: 'cyellow' },
  { name: 'isaacs', email: 'i@yellow.com', twitter: 'iyellow' }
]
name = 'yellow'
`

exports[`test/lib/commands/view.js TAP specific field names maintainers with url > must match snapshot 1`] = `
[ 'claudia (http://c.pink.com)', 'isaacs (http://i.pink.com)' ]
`

exports[`test/lib/commands/view.js TAP specific field names nested field with brackets > must match snapshot 1`] = `
123
`

exports[`test/lib/commands/view.js TAP specific field names readme > must match snapshot 1`] = `
a very useful readme
`

exports[`test/lib/commands/view.js TAP specific field names several fields > must match snapshot 1`] = `
name = 'yellow'
version = '1.0.0'
`

exports[`test/lib/commands/view.js TAP specific field names several fields with several versions > must match snapshot 1`] = `
yellow@1.0.0 'claudia'
yellow@1.0.1 'claudia'
yellow@1.0.2 'claudia'
`

exports[`test/lib/commands/view.js TAP workspaces 404 workspaces basic > must match snapshot 1`] = `

[4m[36mgreen@1.0.0[39m[24m | [32mACME[39m | deps: [36m2[39m | versions: [36m2[39m
green is a very important color

[91mDEPRECATED[39m!! - true

keywords: [36mcolors[39m, [36mgreen[39m, [36mcrayola[39m

bin: [36mgreen[39m

dist
.tarball: [34mhttp://hm.green.com/1.0.0.tgz[39m
.shasum: [32m123[39m
.integrity: [32m---[39m
.unpackedSize: [34m1.0 GB[39m

dependencies:
[34mred[39m: 1.0.0
[34myellow[39m: 1.0.0

maintainers:
- [34mclaudia[39m <[2mc@yellow.com[22m>
- [34misaacs[39m <[2mi@yellow.com[22m>

dist-tags:
[34mlatest[39m: 1.0.0
error [94mcode[39m E404
error [94m404[39m 404
`

exports[`test/lib/commands/view.js TAP workspaces 404 workspaces json > must match snapshot 1`] = `
{
  "green": {
    "_id": "green",
    "name": "green",
    "dist-tags": {
      "latest": "1.0.0"
    },
    "maintainers": [
      {
        "name": "claudia",
        "email": "c@yellow.com",
        "twitter": "cyellow"
      },
      {
        "name": "isaacs",
        "email": "i@yellow.com",
        "twitter": "iyellow"
      }
    ],
    "keywords": [
      "colors",
      "green",
      "crayola"
    ],
    "versions": [
      "1.0.0",
      "1.0.1"
    ],
    "version": "1.0.0",
    "description": "green is a very important color",
    "bugs": {
      "url": "http://bugs.green.com"
    },
    "deprecated": true,
    "repository": {
      "url": "http://repository.green.com"
    },
    "license": {
      "type": "ACME"
    },
    "bin": {
      "green": "bin/green.js"
    },
    "dependencies": {
      "red": "1.0.0",
      "yellow": "1.0.0"
    },
    "dist": {
      "shasum": "123",
      "tarball": "http://hm.green.com/1.0.0.tgz",
      "integrity": "---",
      "fileCount": 1,
      "unpackedSize": 1000000000
    }
  },
  "error": {
    "missing-package": {
      "code": "E404",
      "summary": "404",
      "detail": ""
    }
  }
}
`

exports[`test/lib/commands/view.js TAP workspaces 404 workspaces json with package named error > must match snapshot 1`] = `
warn overwriting existing error on json output
{
  "error": {
    "missing-package": {
      "code": "E404",
      "summary": "404",
      "detail": ""
    }
  }
}
`

exports[`test/lib/commands/view.js TAP workspaces 404 workspaces non-404 error rejects > must match snapshot 1`] = `

[4m[36mgreen@1.0.0[39m[24m | [32mACME[39m | deps: [36m2[39m | versions: [36m2[39m
green is a very important color

[91mDEPRECATED[39m!! - true

keywords: [36mcolors[39m, [36mgreen[39m, [36mcrayola[39m

bin: [36mgreen[39m

dist
.tarball: [34mhttp://hm.green.com/1.0.0.tgz[39m
.shasum: [32m123[39m
.integrity: [32m---[39m
.unpackedSize: [34m1.0 GB[39m

dependencies:
[34mred[39m: 1.0.0
[34myellow[39m: 1.0.0

maintainers:
- [34mclaudia[39m <[2mc@yellow.com[22m>
- [34misaacs[39m <[2mi@yellow.com[22m>

dist-tags:
[34mlatest[39m: 1.0.0
error Unknown error
`

exports[`test/lib/commands/view.js TAP workspaces 404 workspaces non-404 error rejects with single arg > must match snapshot 1`] = `
green:
1.0.0
unknown-error:
error Unknown error
`

exports[`test/lib/commands/view.js TAP workspaces all workspaces --json > must match snapshot 1`] = `
{
  "green": {
    "_id": "green",
    "name": "green",
    "dist-tags": {
      "latest": "1.0.0"
    },
    "maintainers": [
      {
        "name": "claudia",
        "email": "c@yellow.com",
        "twitter": "cyellow"
      },
      {
        "name": "isaacs",
        "email": "i@yellow.com",
        "twitter": "iyellow"
      }
    ],
    "keywords": [
      "colors",
      "green",
      "crayola"
    ],
    "versions": [
      "1.0.0",
      "1.0.1"
    ],
    "version": "1.0.0",
    "description": "green is a very important color",
    "bugs": {
      "url": "http://bugs.green.com"
    },
    "deprecated": true,
    "repository": {
      "url": "http://repository.green.com"
    },
    "license": {
      "type": "ACME"
    },
    "bin": {
      "green": "bin/green.js"
    },
    "dependencies": {
      "red": "1.0.0",
      "yellow": "1.0.0"
    },
    "dist": {
      "shasum": "123",
      "tarball": "http://hm.green.com/1.0.0.tgz",
      "integrity": "---",
      "fileCount": 1,
      "unpackedSize": 1000000000
    }
  },
  "orange": {
    "name": "orange",
    "dist-tags": {
      "latest": "1.0.0"
    },
    "versions": [
      "1.0.0",
      "1.0.1"
    ],
    "version": "1.0.0",
    "homepage": "http://hm.orange.com",
    "license": {},
    "dist": {
      "shasum": "123",
      "tarball": "http://hm.orange.com/1.0.0.tgz",
      "integrity": "---",
      "fileCount": 1,
      "unpackedSize": 1
    }
  }
}
`

exports[`test/lib/commands/view.js TAP workspaces all workspaces > must match snapshot 1`] = `

[4m[36mgreen@1.0.0[39m[24m | [32mACME[39m | deps: [36m2[39m | versions: [36m2[39m
green is a very important color

[91mDEPRECATED[39m!! - true

keywords: [36mcolors[39m, [36mgreen[39m, [36mcrayola[39m

bin: [36mgreen[39m

dist
.tarball: [34mhttp://hm.green.com/1.0.0.tgz[39m
.shasum: [32m123[39m
.integrity: [32m---[39m
.unpackedSize: [34m1.0 GB[39m

dependencies:
[34mred[39m: 1.0.0
[34myellow[39m: 1.0.0

maintainers:
- [34mclaudia[39m <[2mc@yellow.com[22m>
- [34misaacs[39m <[2mi@yellow.com[22m>

dist-tags:
[34mlatest[39m: 1.0.0

[4m[36morange@1.0.0[39m[24m | [31mProprietary[39m | deps: [36mnone[39m | versions: [36m2[39m
[34mhttp://hm.orange.com[39m

dist
.tarball: [34mhttp://hm.orange.com/1.0.0.tgz[39m
.shasum: [32m123[39m
.integrity: [32m---[39m
.unpackedSize: [34m1 B[39m

dist-tags:
[34mlatest[39m: 1.0.0
`

exports[`test/lib/commands/view.js TAP workspaces all workspaces nonexistent field --json > must match snapshot 1`] = `

`

exports[`test/lib/commands/view.js TAP workspaces all workspaces nonexistent field > must match snapshot 1`] = `
green:
orange:
`

exports[`test/lib/commands/view.js TAP workspaces all workspaces single field --json > must match snapshot 1`] = `
{
  "green": "green",
  "orange": "orange"
}
`

exports[`test/lib/commands/view.js TAP workspaces all workspaces single field > must match snapshot 1`] = `
green:
green
orange:
orange
`

exports[`test/lib/commands/view.js TAP workspaces one specific workspace > must match snapshot 1`] = `

[4m[36mgreen@1.0.0[39m[24m | [32mACME[39m | deps: [36m2[39m | versions: [36m2[39m
green is a very important color

[91mDEPRECATED[39m!! - true

keywords: [36mcolors[39m, [36mgreen[39m, [36mcrayola[39m

bin: [36mgreen[39m

dist
.tarball: [34mhttp://hm.green.com/1.0.0.tgz[39m
.shasum: [32m123[39m
.integrity: [32m---[39m
.unpackedSize: [34m1.0 GB[39m

dependencies:
[34mred[39m: 1.0.0
[34myellow[39m: 1.0.0

maintainers:
- [34mclaudia[39m <[2mc@yellow.com[22m>
- [34misaacs[39m <[2mi@yellow.com[22m>

dist-tags:
[34mlatest[39m: 1.0.0
`

exports[`test/lib/commands/view.js TAP workspaces remote package name > must match snapshot 1`] = `

[4m[36mpink@1.0.0[39m[24m | [31mProprietary[39m | deps: [36mnone[39m | versions: [36m2[39m

dist
.tarball: [34mhttp://hm.pink.com/1.0.0.tgz[39m
.shasum: [32m123[39m
.integrity: [32m---[39m
.unpackedSize: [34m1 B[39m

dist-tags:
[34mlatest[39m: 1.0.0
`

exports[`test/lib/commands/view.js TAP workspaces remote package name > should have warning of ignoring workspaces 1`] = `
Array [
  "\\u001b[94mIgnoring workspaces for specified package(s)\\u001b[39m",
]
`

exports[`test/lib/commands/view.js TAP workspaces single workspace --json > must match snapshot 1`] = `
{
  "green": {
    "_id": "green",
    "name": "green",
    "dist-tags": {
      "latest": "1.0.0"
    },
    "maintainers": [
      {
        "name": "claudia",
        "email": "c@yellow.com",
        "twitter": "cyellow"
      },
      {
        "name": "isaacs",
        "email": "i@yellow.com",
        "twitter": "iyellow"
      }
    ],
    "keywords": [
      "colors",
      "green",
      "crayola"
    ],
    "versions": [
      "1.0.0",
      "1.0.1"
    ],
    "version": "1.0.0",
    "description": "green is a very important color",
    "bugs": {
      "url": "http://bugs.green.com"
    },
    "deprecated": true,
    "repository": {
      "url": "http://repository.green.com"
    },
    "license": {
      "type": "ACME"
    },
    "bin": {
      "green": "bin/green.js"
    },
    "dependencies": {
      "red": "1.0.0",
      "yellow": "1.0.0"
    },
    "dist": {
      "shasum": "123",
      "tarball": "http://hm.green.com/1.0.0.tgz",
      "integrity": "---",
      "fileCount": 1,
      "unpackedSize": 1000000000
    }
  }
}
`
