nodejs/deps/npm/tap-snapshots/test/lib/utils/open-url.js.test.cjs
npm CLI robot 063afa85fe
deps: upgrade npm to 10.8.1
PR-URL: https://github.com/nodejs/node/pull/53207
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
2024-05-30 11:21:05 +00: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"
}
`