This commit is contained in:
2023-04-21 02:44:25 +03:00
parent 1855b41942
commit 0cd02ce03e
3 changed files with 10 additions and 9 deletions
+3 -3
View File
@@ -110,8 +110,8 @@ kit.ready(['collection', 'testing', 'flexKit'], function () {
assertSame(3, collection.keys().count(), 'keys');
xOb = {1: 1, 100: 100};
x = new kit.Collection(xOb);
var xOb = {1: 1, 100: 100};
var x = new kit.Collection(xOb);
x.push(200);
assertSame(200, x.last(), 'object push last');
x.push(0);
@@ -139,7 +139,7 @@ kit.ready(['collection', 'testing', 'flexKit'], function () {
assertSame(33, x.get('as', 33), 'get after forget');
xOb = {1: 10, 100: 101};
x = new kit.Collection(xOb);
var x = new kit.Collection(xOb);
assertSame(101, x.pull(100), 'pull');
assertSame(1, x.length, 'length after pull');