Fix the test case as updateAll takes `where` directly

This commit is contained in:
Raymond Feng 2015-06-15 15:17:47 -07:00
parent ec597ef207
commit b0f1aae533
1 changed files with 2 additions and 2 deletions

View File

@ -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();