Skip to content

Commit

Permalink
Add options verb support (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbenchi authored and ctimmerm committed Dec 14, 2017
1 parent af54704 commit 192de7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

var handleRequest = require('./handle_request');

var VERBS = ['get', 'post', 'head', 'delete', 'patch', 'put'];
var VERBS = ['get', 'post', 'head', 'delete', 'patch', 'put', 'options'];

function adapter() {
return function(config) {
Expand Down
1 change: 1 addition & 0 deletions test/basics.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ describe('MockAdapter basics', function() {
expect(mock.onHead).to.be.a('function');
expect(mock.onDelete).to.be.a('function');
expect(mock.onPatch).to.be.a('function');
expect(mock.onOptions).to.be.a('function');
});

it('mocks requests', function() {
Expand Down

0 comments on commit 192de7b

Please sign in to comment.