One more test

This commit is contained in:
Slava Kim
2013-10-10 14:28:56 -07:00
committed by David Glasser
parent 7fc451da3e
commit 37120d186c

View File

@@ -2419,7 +2419,7 @@ Tinytest.add("minimongo - modifier affects selector", function (test) {
else
test.isFalse(LocalCollection._isSelectorAffectedByModifier(sel, mod, desc));
}
function affected(sel, mod, desc) {
testSelectorAffectedByModifier(sel, mod, 1, desc);
}
@@ -2447,5 +2447,7 @@ Tinytest.add("minimongo - modifier affects selector", function (test) {
notAffected({ 'foo.4.bar.baz': 0 }, { $unset: { 'foo.bar': 1 } }, "delicate work with numeric fields in selector");
affected({ 'foo.4.bar.baz': 0 }, { $unset: { 'foo.4.bar': 1 } }, "delicate work with numeric fields in selector");
affected({ 'foo.bar.baz': 0 }, { $unset: { 'foo.3.bar': 1 } }, "delicate work with numeric fields in selector");
affected({ 'foo.0.bar': 0 }, { $set: { 'foo.0.0.bar' } }, "delicate work with nested arrays and selectors by indecies");
});