Validate on updateAll

This commit is contained in:
ssh24 2017-08-02 11:43:01 -04:00
parent deec84f3b5
commit 5dd0d196ee
1 changed files with 2 additions and 0 deletions

View File

@ -2615,6 +2615,7 @@ describe('User', function() {
});
},
function updatePartialUser(next) {
delete User.validations;
User.updateAll(
{pk: userPartial.pk},
{age: userPartial.age + 1},
@ -2713,6 +2714,7 @@ describe('User', function() {
});
},
function updateSpecialUser(next) {
delete User.validations;
User.updateAll(
{name: 'Special'},
{email: 'superspecial@example.com'}, function(err, info) {