We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3096fdb commit e4a02a0Copy full SHA for e4a02a0
lib/mock-request.js
@@ -97,6 +97,17 @@ MockRequest.prototype.get = function (path, headers) {
97
return this.request('GET', path, null, headers);
98
};
99
100
+//
101
+// ### function head (path, headers)
102
+// #### @path {string} Path to expect in this mock request.
103
+// #### @headers {Object} **Optional** Headers to expect in this mock request.
104
+// Appends a new `HEAD` request to the sequence of mock `request/response` pairs
105
+// managed by this instance.
106
107
+MockRequest.prototype.get = function (path, headers) {
108
+ return this.request('HEAD', path, null, headers);
109
+};
110
+
111
//
112
// ### function post (path, body, headers)
113
// #### @path {string} Path to expect in this mock request.
0 commit comments