| 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/utils/open-url.js TAP open url prints where to go when browser is disabled > printed expected message 1`] = ` |
| 9 |
npm home: |
| 10 |
https://www.npmjs.com |
| 11 |
` |
| 12 |
|
| 13 |
exports[`test/lib/utils/open-url.js TAP open url prints where to go when browser is disabled and json is enabled > printed expected message 1`] = ` |
| 14 |
{ |
| 15 |
"title": "npm home", |
| 16 |
"url": "https://www.npmjs.com" |
| 17 |
} |
| 18 |
` |
| 19 |
|
| 20 |
exports[`test/lib/utils/open-url.js TAP open url prints where to go when given browser does not exist > printed expected message 1`] = ` |
| 21 |
npm home: |
| 22 |
https://www.npmjs.com |
| 23 |
` |
| 24 |
|
| 25 |
exports[`test/lib/utils/open-url.js TAP open url prompt does not error when opener cannot find command > Outputs extra Browser unavailable message and url 1`] = ` |
| 26 |
npm home: |
| 27 |
https://www.npmjs.com |
| 28 |
Browser unavailable. Please open the URL manually: |
| 29 |
https://www.npmjs.com |
| 30 |
` |
| 31 |
|
| 32 |
exports[`test/lib/utils/open-url.js TAP open url prompt opens a url > must match snapshot 1`] = ` |
| 33 |
npm home: |
| 34 |
https://www.npmjs.com |
| 35 |
` |
| 36 |
|
| 37 |
exports[`test/lib/utils/open-url.js TAP open url prompt prints json output > must match snapshot 1`] = ` |
| 38 |
{ |
| 39 |
"title": "npm home", |
| 40 |
"url": "https://www.npmjs.com" |
| 41 |
} |
| 42 |
` |