Files
Kmake/deps/npm/tap-snapshots/test/lib/utils/open-url.js.test.cjs
2026-05-26 23:36:42 -07:00

44 lines
1.4 KiB
JavaScript

/* 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/utils/open-url.js TAP open url prints where to go when browser is disabled > printed expected message 1`] = `
npm home:
https://www.npmjs.com
`
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`] = `
{
"title": "npm home",
"url": "https://www.npmjs.com"
}
`
exports[`test/lib/utils/open-url.js TAP open url prints where to go when given browser does not exist > printed expected message 1`] = `
npm home:
https://www.npmjs.com
`
exports[`test/lib/utils/open-url.js TAP open url prompt does not error when opener can not find command > Outputs extra Browser unavailable message and url 1`] = `
npm home:
https://www.npmjs.com
Browser unavailable. Please open the URL manually:
https://www.npmjs.com
`
exports[`test/lib/utils/open-url.js TAP open url prompt opens a url > must match snapshot 1`] = `
npm home:
https://www.npmjs.com
`
exports[`test/lib/utils/open-url.js TAP open url prompt prints json output > must match snapshot 1`] = `
{
"title": "npm home",
"url": "https://www.npmjs.com"
}
`