diff --git a/lib/validations.js b/lib/validations.js index 0b2bf60d..33573a41 100644 --- a/lib/validations.js +++ b/lib/validations.js @@ -400,6 +400,8 @@ Validatable.prototype.isValid = function (callback, data) { // in case of async validation we should return undefined here, // because not all validations are finished yet return; + } else { + return valid; } }; diff --git a/test/validations.test.js b/test/validations.test.js index dc86182d..bea50657 100644 --- a/test/validations.test.js +++ b/test/validations.test.js @@ -60,7 +60,7 @@ describe('validations', function() { }); - describe.only('lifecycle', function() { + describe('lifecycle', function() { it('should work on create', function(done) { User.validatesPresenceOf('name');