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

get-all.js « test « npm-registry-client « node_modules - github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 86978b267030c669a199c412743e50d7fb03103d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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()
  })
})