Validate on updateAll
This commit is contained in:
parent
deec84f3b5
commit
5dd0d196ee
|
@ -2615,6 +2615,7 @@ describe('User', function() {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
function updatePartialUser(next) {
|
function updatePartialUser(next) {
|
||||||
|
delete User.validations;
|
||||||
User.updateAll(
|
User.updateAll(
|
||||||
{pk: userPartial.pk},
|
{pk: userPartial.pk},
|
||||||
{age: userPartial.age + 1},
|
{age: userPartial.age + 1},
|
||||||
|
@ -2713,6 +2714,7 @@ describe('User', function() {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
function updateSpecialUser(next) {
|
function updateSpecialUser(next) {
|
||||||
|
delete User.validations;
|
||||||
User.updateAll(
|
User.updateAll(
|
||||||
{name: 'Special'},
|
{name: 'Special'},
|
||||||
{email: 'superspecial@example.com'}, function(err, info) {
|
{email: 'superspecial@example.com'}, function(err, info) {
|
||||||
|
|
Loading…
Reference in New Issue