From 9c5b75e796e60afd729833887870ee5541f9bd4b Mon Sep 17 00:00:00 2001 From: Douglas Date: Fri, 26 Feb 2016 11:13:57 -0600 Subject: [PATCH] Fix test for crossfilter.groupAll() --- crossfilter/crossfilter-tests.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crossfilter/crossfilter-tests.ts b/crossfilter/crossfilter-tests.ts index 8d98bef06..fb80ddd9b 100644 --- a/crossfilter/crossfilter-tests.ts +++ b/crossfilter/crossfilter-tests.ts @@ -25,8 +25,8 @@ var payments = crossfilter([ ]); var total_payments : number = payments.groupAll().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);