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.observe('persist', pushContextAndNext());
TestModel.updateAll( TestModel.updateAll(
{ where: { name: existingInstance.name } }, { name: existingInstance.name },
{ name: 'changed' }, { name: 'changed' },
function(err, instance) { function(err, instance) {
if (err) return done(err); if (err) return done(err);
observedContexts.should.eql(aTestModelCtx({ observedContexts.should.eql(aTestModelCtx({
data: { name: 'changed' }, data: { name: 'changed' },
where: { where: { name: existingInstance.name } } where: { name: existingInstance.name }
})); }));
done(); done();