Comparing version 0.3.2 to 0.3.3
@@ -59,2 +59,7 @@ 'use strict'; | ||
describe('.assertValid()', function () { | ||
it('should return the subject', function () { | ||
var res = _Schema2.default.assertValid(_bookSchema2.default, _book2.default); | ||
(0, _chai.expect)(res).to.equal(_book2.default); | ||
}); | ||
it('should pass valid subjects', function () { | ||
@@ -61,0 +66,0 @@ _Schema2.default.assertValid(_bookSchema2.default, _book2.default); |
@@ -68,2 +68,3 @@ 'use strict'; | ||
* @param {string} [messagePrefix] Error message prefix | ||
* @return {object} Subject (for call chains) | ||
*/ | ||
@@ -77,2 +78,3 @@ function assertValid(schema, subject) { | ||
} | ||
return subject; | ||
} | ||
@@ -79,0 +81,0 @@ |
{ | ||
"name": "jsft", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"description": "Functional tools for working with objects with structures defined with json-schema", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22916
493