mongoose-auto-api.validation
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -64,3 +64,3 @@ var assert, should, v; | ||
var val; | ||
val = v.confirmPassVal('test', 'test1', 'confirmPassword'); | ||
val = v.confirmPassVal('', 'test1', 'confirmPassword'); | ||
it('Returns object', function() { | ||
@@ -72,3 +72,7 @@ return val.should.be.a('object'); | ||
}); | ||
it('Required Check', function() { | ||
return assert(val.codes.includes('CONFIRM_PASSWORD_REQUIRED')); | ||
}); | ||
it('Match Check', function() { | ||
val = v.confirmPassVal('test', 'test1', 'confirmPassword'); | ||
return assert(val.codes.includes('CONFIRM_PASSWORD_INVALID_CONFIRMATION')); | ||
@@ -75,0 +79,0 @@ }); |
@@ -53,2 +53,5 @@ var camelCase, confirmPassVal, confirmValidation, joinValidations, lenValidation, mailValidation, multiValidations, passVal, passValidation, reqValidation, snakeCase, startCase, titleCase, upperSnakeCase, userVal, validationObject; | ||
{ | ||
func: reqValidation | ||
}, | ||
{ | ||
func: confirmValidation, | ||
@@ -55,0 +58,0 @@ args: { |
{ | ||
"name": "mongoose-auto-api.validation", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Automatic Mongoose REST API - Validations module", | ||
@@ -5,0 +5,0 @@ "main": "./js/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
9169
243