Fix the test case as updateAll takes `where` directly
This commit is contained in:
parent
ec597ef207
commit
b0f1aae533
|
@ -1612,14 +1612,14 @@ module.exports = function(dataSource, should) {
|
|||
TestModel.observe('persist', pushContextAndNext());
|
||||
|
||||
TestModel.updateAll(
|
||||
{ where: { name: existingInstance.name } },
|
||||
{ name: existingInstance.name },
|
||||
{ name: 'changed' },
|
||||
function(err, instance) {
|
||||
if (err) return done(err);
|
||||
|
||||
observedContexts.should.eql(aTestModelCtx({
|
||||
data: { name: 'changed' },
|
||||
where: { where: { name: existingInstance.name } }
|
||||
where: { name: existingInstance.name }
|
||||
}));
|
||||
|
||||
done();
|
||||
|
|
Loading…
Reference in New Issue