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.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();
|
||||||
|
|
Loading…
Reference in New Issue