Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
glena committed Dec 7, 2016
1 parent a258069 commit ab0e916
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/helper/request-builder.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ describe('helpers requestBuilder', function () {
var req = new RequestBuilder({})
var handler = req
.get('https://test.com')
.withCredentials()
.end(function(err, data) {

});
Expand Down
4 changes: 4 additions & 0 deletions test/mock/request-mock.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ RequestMock.prototype.set = function (key, value) {
RequestMock.prototype.abort = function () {
};

RequestMock.prototype.withCredentials = function () {
return this;
};

RequestMock.prototype.end = function (cb) {
expect(this.options.headers).to.eql({});
this.options.cb(cb);
Expand Down

0 comments on commit ab0e916

Please sign in to comment.