mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 17:47:49 +00:00
adding an identity test (silly, I know) to utility tests
This commit is contained in:
@@ -10,6 +10,11 @@ $(document).ready(function() {
|
|||||||
window._ = underscore;
|
window._ = underscore;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test("utility: identity", function() {
|
||||||
|
var moe = {name : 'moe'};
|
||||||
|
equals(_.identity(moe), moe, 'moe is the same has his identity');
|
||||||
|
});
|
||||||
|
|
||||||
test("utility: uniqueId", function() {
|
test("utility: uniqueId", function() {
|
||||||
var ids = [], i = 0;
|
var ids = [], i = 0;
|
||||||
while(i++ < 100) ids.push(_.uniqueId());
|
while(i++ < 100) ids.push(_.uniqueId());
|
||||||
|
|||||||
Reference in New Issue
Block a user