summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/npm-registry-client/test/fetch-404.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/npm-registry-client/test/fetch-404.js')
-rw-r--r--deps/npm/node_modules/npm-registry-client/test/fetch-404.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/deps/npm/node_modules/npm-registry-client/test/fetch-404.js b/deps/npm/node_modules/npm-registry-client/test/fetch-404.js
index 2ce3b212b..25def1bec 100644
--- a/deps/npm/node_modules/npm-registry-client/test/fetch-404.js
+++ b/deps/npm/node_modules/npm-registry-client/test/fetch-404.js
@@ -10,7 +10,7 @@ var common = require("./lib/common.js")
var tgz = resolve(__dirname, "./fixtures/underscore/1.3.3/package.tgz")
-tap.test("basic fetch", function (t) {
+tap.test("fetch with a 404 response", function (t) {
server.expect("/underscore/-/underscore-1.3.3.tgz", function (req, res) {
t.equal(req.method, "GET", "got expected method")
@@ -23,9 +23,10 @@ tap.test("basic fetch", function (t) {
})
var client = common.freshClient()
+ var defaulted = {}
client.fetch(
"http://localhost:1337/underscore/-/underscore-1.3.3.tgz",
- null,
+ defaulted,
function (er, res) {
t.ifError(er, "loaded successfully")