adding an identity test (silly, I know) to utility tests

This commit is contained in:
Jeremy Ashkenas
2009-10-29 14:50:48 -04:00
parent d2d1285e26
commit e9bc165bc3

View File

@@ -9,6 +9,11 @@ $(document).ready(function() {
equals(intersection.join(', '), '1, 2', 'but the intersection function still works');
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() {
var ids = [], i = 0;