mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
@@ -116,7 +116,8 @@ ObserveSequence = {
|
|||||||
|
|
||||||
var idString = idStringify(id);
|
var idString = idStringify(id);
|
||||||
if (idsUsed[idString]) {
|
if (idsUsed[idString]) {
|
||||||
warn("duplicate id " + id + " in", seq);
|
if (typeof item === 'object' && '_id' in item)
|
||||||
|
warn("duplicate id " + id + " in", seq);
|
||||||
id = Random.id();
|
id = Random.id();
|
||||||
} else {
|
} else {
|
||||||
idsUsed[idString] = true;
|
idsUsed[idString] = true;
|
||||||
|
|||||||
@@ -483,7 +483,7 @@ Tinytest.add('observe sequence - number arrays', function (test) {
|
|||||||
{removedAt: [{NOT: 1}, 1, 1]},
|
{removedAt: [{NOT: 1}, 1, 1]},
|
||||||
{addedAt: [3, 3, 1, 2]},
|
{addedAt: [3, 3, 1, 2]},
|
||||||
{addedAt: [{NOT: 3}, 3, 3, null]}
|
{addedAt: [{NOT: 3}, 3, 3, null]}
|
||||||
], /*numExpectedWarnings = */2);
|
]);
|
||||||
});
|
});
|
||||||
|
|
||||||
Tinytest.add('observe sequence - cursor to other cursor, same collection', function (test) {
|
Tinytest.add('observe sequence - cursor to other cursor, same collection', function (test) {
|
||||||
|
|||||||
Reference in New Issue
Block a user