Skip to content

Commit

Permalink
chore: clean up snapshots
Browse files Browse the repository at this point in the history
Looks like tests were removed but the snapshots still have them.

PR-URL: #4019
Credit: @wraithgar
Close: #4019
Reviewed-by: @lukekarrys
  • Loading branch information
wraithgar committed Nov 10, 2021
1 parent 5cf6068 commit ac4f9e4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 155 deletions.
136 changes: 0 additions & 136 deletions tap-snapshots/test/lib/commands/dist-tag.js.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,50 +5,6 @@
* Make sure to inspect the output below. Do not ignore changes!
*/
'use strict'
exports[`test/lib/commands/dist-tag.js TAP add missing args > should exit usage error message 1`] = `
Error:
Usage: npm dist-tag
Modify package distribution tags
Usage:
npm dist-tag add <pkg>@<version> [<tag>]
npm dist-tag rm <pkg> <tag>
npm dist-tag ls [<pkg>]
Options:
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
[-ws|--workspaces] [--include-workspace-root]
alias: dist-tags
Run "npm help dist-tag" for more info {
"code": "EUSAGE",
}
`

exports[`test/lib/commands/dist-tag.js TAP add missing pkg name > should exit usage error message 1`] = `
Error:
Usage: npm dist-tag
Modify package distribution tags
Usage:
npm dist-tag add <pkg>@<version> [<tag>]
npm dist-tag rm <pkg> <tag>
npm dist-tag ls [<pkg>]
Options:
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
[-ws|--workspaces] [--include-workspace-root]
alias: dist-tags
Run "npm help dist-tag" for more info {
"code": "EUSAGE",
}
`

exports[`test/lib/commands/dist-tag.js TAP add new tag > should return success msg 1`] = `
+c: @scoped/another@7.7.7
`
Expand All @@ -58,87 +14,17 @@ dist-tag add 1.0.0 to @scoped/another@7.7.7
`

exports[`test/lib/commands/dist-tag.js TAP borked cmd usage > should show usage error 1`] = `
Error:
Usage: npm dist-tag
Modify package distribution tags
Usage:
npm dist-tag add <pkg>@<version> [<tag>]
npm dist-tag rm <pkg> <tag>
npm dist-tag ls [<pkg>]
Options:
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
[-ws|--workspaces] [--include-workspace-root]
alias: dist-tags
Run "npm help dist-tag" for more info {
"code": "EUSAGE",
}
`

exports[`test/lib/commands/dist-tag.js TAP ls global > should throw basic usage 1`] = `
Error:
Usage: npm dist-tag
Modify package distribution tags
Usage:
npm dist-tag add <pkg>@<version> [<tag>]
npm dist-tag rm <pkg> <tag>
npm dist-tag ls [<pkg>]
Options:
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
[-ws|--workspaces] [--include-workspace-root]
alias: dist-tags
Run "npm help dist-tag" for more info {
"code": "EUSAGE",
}
`

exports[`test/lib/commands/dist-tag.js TAP ls in current package > should list available tags for current package 1`] = `
a: 0.0.1
b: 0.5.0
latest: 1.0.0
`

exports[`test/lib/commands/dist-tag.js TAP ls on missing name in current package > should throw usage error message 1`] = `
Error:
Usage: npm dist-tag
Modify package distribution tags
Usage:
npm dist-tag add <pkg>@<version> [<tag>]
npm dist-tag rm <pkg> <tag>
npm dist-tag ls [<pkg>]
Options:
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
[-ws|--workspaces] [--include-workspace-root]
alias: dist-tags
Run "npm help dist-tag" for more info {
"code": "EUSAGE",
}
`

exports[`test/lib/commands/dist-tag.js TAP ls on missing package > should log no dist-tag found msg 1`] = `
dist-tag ls Couldn't get dist-tag data for foo@latest
`

exports[`test/lib/commands/dist-tag.js TAP ls on missing package > should throw error message 1`] = `
Error: No dist-tags found for foo
`

exports[`test/lib/commands/dist-tag.js TAP ls on named package > should list tags for the specified package 1`] = `
a: 0.0.2
b: 0.6.0
Expand Down Expand Up @@ -166,28 +52,6 @@ exports[`test/lib/commands/dist-tag.js TAP remove existing tag > should return s
-c: @scoped/another@7.7.7
`

exports[`test/lib/commands/dist-tag.js TAP remove missing pkg name > should exit usage error message 1`] = `
Error:
Usage: npm dist-tag
Modify package distribution tags
Usage:
npm dist-tag add <pkg>@<version> [<tag>]
npm dist-tag rm <pkg> <tag>
npm dist-tag ls [<pkg>]
Options:
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
[-ws|--workspaces] [--include-workspace-root]
alias: dist-tags
Run "npm help dist-tag" for more info {
"code": "EUSAGE",
}
`

exports[`test/lib/commands/dist-tag.js TAP remove non-existing tag > should log error msg 1`] = `
dist-tag del nonexistent from @scoped/another
dist-tag del nonexistent is not a dist-tag on @scoped/another
Expand Down
19 changes: 0 additions & 19 deletions tap-snapshots/test/lib/commands/publish.js.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -39,25 +39,6 @@ Array [
]
`

exports[`test/lib/commands/publish.js TAP shows usage with wrong set of arguments > should print usage 1`] = `
Error:
Usage: npm publish
Publish a package
Usage:
npm publish [<folder>]
Options:
[--tag <tag>] [--access <restricted|public>] [--dry-run] [--otp <otp>]
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
[-ws|--workspaces] [--include-workspace-root]
Run "npm help publish" for more info {
"code": "EUSAGE",
}
`

exports[`test/lib/commands/publish.js TAP workspaces all workspaces > should output all publishes 1`] = `
Array [
"+ workspace-a@1.2.3-a",
Expand Down

0 comments on commit ac4f9e4

Please sign in to comment.