|
@@ -142,8 +142,8 @@ describe( 'Collection', () => {
|
|
|
'should not override item under an existing id in case of a collision ' +
|
|
'should not override item under an existing id in case of a collision ' +
|
|
|
'between existing items and one with an automatically generated id',
|
|
'between existing items and one with an automatically generated id',
|
|
|
() => {
|
|
() => {
|
|
|
- // Add many items to collection
|
|
|
|
|
- // to be sure that next item id will be higher than id already stored in uid cache
|
|
|
|
|
|
|
+ // Add many items to the collection
|
|
|
|
|
+ // to be sure that next item id will be higher than id already stored in uid cache.
|
|
|
for ( let i = 0; i < 100; i++ ) {
|
|
for ( let i = 0; i < 100; i++ ) {
|
|
|
collection.add( getItem( String( i ) ) );
|
|
collection.add( getItem( String( i ) ) );
|
|
|
}
|
|
}
|