Merge pull request #3541 from strongloop/add-validate-updateAll
Validate on updateAll
This commit is contained in:
commit
619a0e468d
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue