diff options
author | Ruy Adorno <ruyadorno@hotmail.com> | 2020-10-23 19:41:17 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2020-10-23 20:46:23 +0300 |
commit | b9c1caa8e4cc7c900d09657425ea361db5974319 (patch) | |
tree | c61ec11a696c0455ba70a4ce1a86907787c5f818 /tap-snapshots | |
parent | aeb10d210816cf6829e0ac557c79d9efd8c4bdd1 (diff) |
fix: npm owner refactor
- Fixed npm owner completion
- Refactored lib/owner.js
- Added error codes to lib/owner.js errors
- Added tests for lib/owner.js
PR-URL: https://github.com/npm/cli/pull/2026
Credit: @ruyadorno
Close: #2026
Reviewed-by: @isaacs
Diffstat (limited to 'tap-snapshots')
-rw-r--r-- | tap-snapshots/test-lib-owner.js-TAP.test.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tap-snapshots/test-lib-owner.js-TAP.test.js b/tap-snapshots/test-lib-owner.js-TAP.test.js new file mode 100644 index 000000000..2d92b0ae5 --- /dev/null +++ b/tap-snapshots/test-lib-owner.js-TAP.test.js @@ -0,0 +1,20 @@ +/* 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/owner.js TAP owner ls <pkg> > should output owners of <pkg> 1`] = ` +nlf <quitlahok@gmail.com> +ruyadorno <ruyadorno@hotmail.com> +darcyclarke <darcy@darcyclarke.me> +isaacs <i@izs.me> +` + +exports[`test/lib/owner.js TAP owner ls no args > should output owners of cwd package 1`] = ` +nlf <quitlahok@gmail.com> +ruyadorno <ruyadorno@hotmail.com> +darcyclarke <darcy@darcyclarke.me> +isaacs <i@izs.me> +` |