Update Underscore build compat to 1.7.0.

This commit is contained in:
John-David Dalton
2014-08-26 23:56:15 -07:00
parent 3191825ecc
commit 6ad7a20c07
6 changed files with 208 additions and 114 deletions

View File

@@ -537,8 +537,8 @@
test('indexBy', function() {
var parity = _.indexBy([1, 2, 3, 4, 5], function(num){ return num % 2 === 0; });
equal(parity.true, 4);
equal(parity.false, 5);
equal(parity['true'], 4);
equal(parity['false'], 5);
var list = ['one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten'];
var grouped = _.indexBy(list, 'length');
@@ -555,8 +555,8 @@
test('countBy', function() {
var parity = _.countBy([1, 2, 3, 4, 5], function(num){ return num % 2 === 0; });
equal(parity.true, 2);
equal(parity.false, 3);
equal(parity['true'], 2);
equal(parity['false'], 3);
var list = ['one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten'];
var grouped = _.countBy(list, 'length');