diff options
author | Julian Møller Ellehauge <jumoel@github.com> | 2022-06-22 23:58:41 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-22 23:58:41 +0300 |
commit | 06fd788f79e16da04d6e96aa56416cd2698f057a (patch) | |
tree | 7ca9e6a884b2b64cb65ac791fda52b8d2b963ea6 /tap-snapshots/test/lib | |
parent | aab4079e810c06ff5fa847cbd53b5d7bab3dd24f (diff) |
feat: prompt before opening web-login URL when performing `login`/`adduser` (#4960)
Prompt before opening web-login URL when performing login/adduser
Diffstat (limited to 'tap-snapshots/test/lib')
-rw-r--r-- | tap-snapshots/test/lib/utils/open-url-prompt.js.test.cjs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tap-snapshots/test/lib/utils/open-url-prompt.js.test.cjs b/tap-snapshots/test/lib/utils/open-url-prompt.js.test.cjs new file mode 100644 index 000000000..8af3c475c --- /dev/null +++ b/tap-snapshots/test/lib/utils/open-url-prompt.js.test.cjs @@ -0,0 +1,25 @@ +/* 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-prompt.js TAP opens a url > must match snapshot 1`] = ` +Array [ + Array [ + String( + npm home: + https://www.npmjs.com + ), + ], +] +` + +exports[`test/lib/utils/open-url-prompt.js TAP prints json output > must match snapshot 1`] = ` +Array [ + Array [ + "{\\"title\\":\\"npm home\\",\\"url\\":\\"https://www.npmjs.com\\"}", + ], +] +` |