fixing mistakenly-aliased contains ... should refer to include.

This commit is contained in:
Jeremy Ashkenas
2010-10-15 17:15:26 -04:00
parent b07c802766
commit 74d282ccc8
2 changed files with 5 additions and 4 deletions

View File

@@ -111,7 +111,7 @@ $(document).ready(function() {
test('collections: include', function() {
ok(_.include([1,2,3], 2), 'two is in the array');
ok(!_.include([1,3,9], 2), 'two is not in the array');
ok(_.contains({moe:1, larry:3, curly:9}, 3), '_.include on objects checks their values');
ok(_.contains({moe:1, larry:3, curly:9}, 3) === true, '_.include on objects checks their values');
ok(_([1,2,3]).include(2), 'OO-style include');
});