Skip to content

Commit

Permalink
feat: removes "isValidatable" from public API
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Gavel no longer exposes "isValidatable" method in its public API
  • Loading branch information
artem-zakharchenko committed May 30, 2019
1 parent 28f4ac3 commit 22b5053
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
6 changes: 3 additions & 3 deletions lib/gavel.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const { HttpRequest, ExpectedHttpRequest } = require('./model/http-request');
const { HttpResponse, ExpectedHttpResponse } = require('./model/http-response');
const { isValid, isValidatable } = require('./validate');
const { isValid } = require('./validate');

const validate = require('./next/validate');

module.exports = {
Expand All @@ -12,6 +13,5 @@ module.exports = {
HttpResponse,
ExpectedHttpRequest,
ExpectedHttpResponse,
isValid,
isValidatable
isValid
};
7 changes: 1 addition & 6 deletions lib/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,6 @@ const { isValid } = result;\
return proxy(getValidatableObject(real, expected, type), 'isValid', cb);
}

function isValidatable(real, expected, type, cb) {
return proxy(getValidatableObject(real, expected, type), 'isValidatable', cb);
}

module.exports = {
isValid,
isValidatable
isValid
};

0 comments on commit 22b5053

Please sign in to comment.