Fix test for crossfilter.groupAll()

This commit is contained in:
Douglas
2016-02-26 11:13:57 -06:00
parent 66f219903a
commit 9c5b75e796
+2 -2
View File
@@ -25,8 +25,8 @@ var payments = crossfilter<Payment>([
]);
var total_payments : number = payments.groupAll<number>().reduce(
function(p,v) { return p+=v; },
function(p,v) { return p-=v; },
function(p,v) { return p+=v.total; },
function(p,v) { return p-=v.total; },
function() { return 0; } ).value();
var paymentsByTotal = payments.dimension((d) => d.total);