purescript-httpurple/Test/HTTPure/SpecHelpers.js

20 lines
329 B
JavaScript
Raw Normal View History

"use strict";
exports.mockResponse = function() {
return {
body: "",
headers: {},
write: function(str) {
this.body = this.body + str;
},
end: function() {
},
setHeader: function(header, val) {
this.headers[header] = val;
}
};
};