diff --git a/test/persistence-hooks.suite.js b/test/persistence-hooks.suite.js index 35c6b882..86754e84 100644 --- a/test/persistence-hooks.suite.js +++ b/test/persistence-hooks.suite.js @@ -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();