Skip to content
This repository was archived by the owner on Nov 8, 2024. It is now read-only.

Commit 33dc9b8

Browse files
feat: removes "isValidatable" from public API
BREAKING CHANGE: Gavel no longer exposes "isValidatable" method in its public API
1 parent ad90056 commit 33dc9b8

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

lib/gavel.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
const { HttpRequest, ExpectedHttpRequest } = require('./model/http-request');
22
const { HttpResponse, ExpectedHttpResponse } = require('./model/http-response');
3-
const { isValid, isValidatable } = require('./validate');
3+
const { isValid } = require('./validate');
4+
45
const validate = require('./next/validate');
56

67
module.exports = {
@@ -12,6 +13,5 @@ module.exports = {
1213
HttpResponse,
1314
ExpectedHttpRequest,
1415
ExpectedHttpResponse,
15-
isValid,
16-
isValidatable
16+
isValid
1717
};

lib/validate.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,6 @@ const { isValid } = result;\
5252
return proxy(getValidatableObject(real, expected, type), 'isValid', cb);
5353
}
5454

55-
function isValidatable(real, expected, type, cb) {
56-
return proxy(getValidatableObject(real, expected, type), 'isValidatable', cb);
57-
}
58-
5955
module.exports = {
60-
isValid,
61-
isValidatable
56+
isValid
6257
};

0 commit comments

Comments
 (0)