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:
Diffstat (limited to 'node_modules/npm-registry-client/test/get-all.js')
-rw-r--r--node_modules/npm-registry-client/test/get-all.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/node_modules/npm-registry-client/test/get-all.js b/node_modules/npm-registry-client/test/get-all.js
new file mode 100644
index 000000000..86978b267
--- /dev/null
+++ b/node_modules/npm-registry-client/test/get-all.js
@@ -0,0 +1,16 @@
+var tap = require("tap")
+
+var server = require("./lib/server.js")
+var common = require("./lib/common.js")
+var client = common.freshClient()
+
+tap.test("basic request", function (t) {
+ server.expect("/-/all", function (req, res) {
+ res.json([])
+ })
+
+ client.get("http://localhost:1337/-/all", null, function (er) {
+ t.notOk(er, "no error")
+ t.end()
+ })
+})