mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 10:57:49 +00:00
Reword unit jQuery/MooTools DOM query collection unit test.
Former-commit-id: c80673f799ce6f1449d043eabf76fd6970a70b77
This commit is contained in:
@@ -713,7 +713,7 @@
|
|||||||
equal(_.isEmpty({ 'length': 0 }), false);
|
equal(_.isEmpty({ 'length': 0 }), false);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('should work with array-like collections', function() {
|
test('should work with jQuery/MooTools DOM query collections', function() {
|
||||||
function Foo(elements) { Array.prototype.push.apply(this, elements); }
|
function Foo(elements) { Array.prototype.push.apply(this, elements); }
|
||||||
Foo.prototype = { 'splice': Array.prototype.splice };
|
Foo.prototype = { 'splice': Array.prototype.splice };
|
||||||
|
|
||||||
@@ -1091,7 +1091,7 @@
|
|||||||
equal(_.size({ 'length': 3 }), 1);
|
equal(_.size({ 'length': 3 }), 1);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('should work with array-like collections', function() {
|
test('should work with jQuery/MooTools DOM query collections', function() {
|
||||||
function Foo(elements) { Array.prototype.push.apply(this, elements); }
|
function Foo(elements) { Array.prototype.push.apply(this, elements); }
|
||||||
Foo.prototype = { 'splice': Array.prototype.splice };
|
Foo.prototype = { 'splice': Array.prototype.splice };
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user