| 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' |
| 8 |
exports[`test/lib/commands/dist-tag.js TAP add new tag > should return success msg 1`] = ` |
| 9 |
+c: @scoped/[email protected] |
| 10 |
` |
| 11 |
|
| 12 |
exports[`test/lib/commands/dist-tag.js TAP add using valid semver range as name > should return success msg 1`] = ` |
| 13 |
dist-tag add 1.0.0 to @scoped/[email protected] |
| 14 |
` |
| 15 |
|
| 16 |
exports[`test/lib/commands/dist-tag.js TAP ls in current package > should list available tags for current package 1`] = ` |
| 17 |
a: 0.0.1 |
| 18 |
b: 0.5.0 |
| 19 |
latest: 1.0.0 |
| 20 |
` |
| 21 |
|
| 22 |
exports[`test/lib/commands/dist-tag.js TAP ls on missing package > should log no dist-tag found msg 1`] = ` |
| 23 |
dist-tag ls Couldn't get dist-tag data for Result { |
| 24 |
dist-tag ls type: 'range', |
| 25 |
dist-tag ls registry: true, |
| 26 |
dist-tag ls where: undefined, |
| 27 |
dist-tag ls raw: 'foo', |
| 28 |
dist-tag ls name: 'foo', |
| 29 |
dist-tag ls escapedName: 'foo', |
| 30 |
dist-tag ls scope: undefined, |
| 31 |
dist-tag ls rawSpec: '*', |
| 32 |
dist-tag ls saveSpec: null, |
| 33 |
dist-tag ls fetchSpec: '*', |
| 34 |
dist-tag ls gitRange: undefined, |
| 35 |
dist-tag ls gitCommittish: undefined, |
| 36 |
dist-tag ls gitSubdir: undefined, |
| 37 |
dist-tag ls hosted: undefined |
| 38 |
dist-tag ls } |
| 39 |
` |
| 40 |
|
| 41 |
exports[`test/lib/commands/dist-tag.js TAP ls on named package > should list tags for the specified package 1`] = ` |
| 42 |
a: 0.0.2 |
| 43 |
b: 0.6.0 |
| 44 |
latest: 2.0.0 |
| 45 |
` |
| 46 |
|
| 47 |
exports[`test/lib/commands/dist-tag.js TAP no args in current package > should default to listing available tags for current package 1`] = ` |
| 48 |
a: 0.0.1 |
| 49 |
b: 0.5.0 |
| 50 |
latest: 1.0.0 |
| 51 |
` |
| 52 |
|
| 53 |
exports[`test/lib/commands/dist-tag.js TAP only named package arg > should default to listing tags for the specified package 1`] = ` |
| 54 |
a: 0.0.2 |
| 55 |
b: 0.6.0 |
| 56 |
latest: 2.0.0 |
| 57 |
` |
| 58 |
|
| 59 |
exports[`test/lib/commands/dist-tag.js TAP remove existing tag > should log remove info 1`] = ` |
| 60 |
dist-tag del c from @scoped/another |
| 61 |
` |
| 62 |
|
| 63 |
exports[`test/lib/commands/dist-tag.js TAP remove existing tag > should return success msg 1`] = ` |
| 64 |
-c: @scoped/[email protected] |
| 65 |
` |
| 66 |
|
| 67 |
exports[`test/lib/commands/dist-tag.js TAP remove non-existing tag > should log error msg 1`] = ` |
| 68 |
dist-tag del nonexistent from @scoped/another |
| 69 |
dist-tag del nonexistent is not a dist-tag on @scoped/another |
| 70 |
` |
| 71 |
|
| 72 |
exports[`test/lib/commands/dist-tag.js TAP set existing version > should log warn msg 1`] = ` |
| 73 |
dist-tag add b to @scoped/[email protected] |
| 74 |
dist-tag add b is already set to version 0.6.0 |
| 75 |
` |
| 76 |
|
| 77 |
exports[`test/lib/commands/dist-tag.js TAP workspaces no args > printed the expected output 1`] = ` |
| 78 |
workspace-a: |
| 79 |
latest-a: 1.0.0 |
| 80 |
latest: 1.0.0 |
| 81 |
workspace-b: |
| 82 |
latest-b: 2.0.0 |
| 83 |
latest: 2.0.0 |
| 84 |
workspace-c: |
| 85 |
latest-c: 3.0.0 |
| 86 |
latest: 3.0.0 |
| 87 |
` |
| 88 |
|
| 89 |
exports[`test/lib/commands/dist-tag.js TAP workspaces no args, one failing workspace sets exitCode to 1 > printed the expected output 1`] = ` |
| 90 |
workspace-a: |
| 91 |
latest-a: 1.0.0 |
| 92 |
latest: 1.0.0 |
| 93 |
workspace-b: |
| 94 |
latest-b: 2.0.0 |
| 95 |
latest: 2.0.0 |
| 96 |
workspace-c: |
| 97 |
latest-c: 3.0.0 |
| 98 |
latest: 3.0.0 |
| 99 |
workspace-d: |
| 100 |
` |
| 101 |
|
| 102 |
exports[`test/lib/commands/dist-tag.js TAP workspaces no args, one workspace > printed the expected output 1`] = ` |
| 103 |
workspace-a: |
| 104 |
latest-a: 1.0.0 |
| 105 |
latest: 1.0.0 |
| 106 |
` |
| 107 |
|
| 108 |
exports[`test/lib/commands/dist-tag.js TAP workspaces one arg -- .@1, ignores version spec > printed the expected output 1`] = ` |
| 109 |
workspace-a: |
| 110 |
latest-a: 1.0.0 |
| 111 |
latest: 1.0.0 |
| 112 |
workspace-b: |
| 113 |
latest-b: 2.0.0 |
| 114 |
latest: 2.0.0 |
| 115 |
workspace-c: |
| 116 |
latest-c: 3.0.0 |
| 117 |
latest: 3.0.0 |
| 118 |
` |
| 119 |
|
| 120 |
exports[`test/lib/commands/dist-tag.js TAP workspaces one arg -- cwd > printed the expected output 1`] = ` |
| 121 |
workspace-a: |
| 122 |
latest-a: 1.0.0 |
| 123 |
latest: 1.0.0 |
| 124 |
workspace-b: |
| 125 |
latest-b: 2.0.0 |
| 126 |
latest: 2.0.0 |
| 127 |
workspace-c: |
| 128 |
latest-c: 3.0.0 |
| 129 |
latest: 3.0.0 |
| 130 |
` |
| 131 |
|
| 132 |
exports[`test/lib/commands/dist-tag.js TAP workspaces one arg -- list > printed the expected output 1`] = ` |
| 133 |
workspace-a: |
| 134 |
latest-a: 1.0.0 |
| 135 |
latest: 1.0.0 |
| 136 |
workspace-b: |
| 137 |
latest-b: 2.0.0 |
| 138 |
latest: 2.0.0 |
| 139 |
workspace-c: |
| 140 |
latest-c: 3.0.0 |
| 141 |
latest: 3.0.0 |
| 142 |
` |
| 143 |
|
| 144 |
exports[`test/lib/commands/dist-tag.js TAP workspaces two args -- list, .@1, ignores version spec > printed the expected output 1`] = ` |
| 145 |
workspace-a: |
| 146 |
latest-a: 1.0.0 |
| 147 |
latest: 1.0.0 |
| 148 |
workspace-b: |
| 149 |
latest-b: 2.0.0 |
| 150 |
latest: 2.0.0 |
| 151 |
workspace-c: |
| 152 |
latest-c: 3.0.0 |
| 153 |
latest: 3.0.0 |
| 154 |
` |
| 155 |
|
| 156 |
exports[`test/lib/commands/dist-tag.js TAP workspaces two args -- list, @scoped/pkg, logs a warning and ignores workspaces > printed the expected output 1`] = ` |
| 157 |
a: 0.0.1 |
| 158 |
b: 0.5.0 |
| 159 |
latest: 1.0.0 |
| 160 |
` |
| 161 |
|
| 162 |
exports[`test/lib/commands/dist-tag.js TAP workspaces two args -- list, cwd > printed the expected output 1`] = ` |
| 163 |
workspace-a: |
| 164 |
latest-a: 1.0.0 |
| 165 |
latest: 1.0.0 |
| 166 |
workspace-b: |
| 167 |
latest-b: 2.0.0 |
| 168 |
latest: 2.0.0 |
| 169 |
workspace-c: |
| 170 |
latest-c: 3.0.0 |
| 171 |
latest: 3.0.0 |
| 172 |
` |