Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[minor fix] helpers var

  • Loading branch information...
commit 39fa102d868fff44f68aa36752afa6bc43328639 1 parent 71ed4ec
@dscape authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/helpers.js
View
6 tests/helpers.js
@@ -82,13 +82,13 @@ helpers.nock = function helpersNock(url, fixture) {
return "*";
})[method](npath, "*").reply(status, response, headers);
} else {
- var n = nock(url);
+ var nk = nock(url);
if(reqheaders !== {}) {
for (var k in reqheaders) {
- n = n.matchHeader(k, reqheaders[k]);
+ nk = nk.matchHeader(k, reqheaders[k]);
}
}
- n[method](npath, body).reply(status, response, headers);
+ nk[method](npath, body).reply(status, response, headers);
}
});
nock(url).log(console.log);
Please sign in to comment.
Something went wrong with that request. Please try again.