Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuy Adorno <ruyadorno@hotmail.com>2020-10-23 19:41:17 +0300
committerisaacs <i@izs.me>2020-10-23 20:46:23 +0300
commitb9c1caa8e4cc7c900d09657425ea361db5974319 (patch)
treec61ec11a696c0455ba70a4ce1a86907787c5f818 /tap-snapshots
parentaeb10d210816cf6829e0ac557c79d9efd8c4bdd1 (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.js20
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>
+`