From 0f98f22404d3d7c20a2186385523a0be000ffa3a Mon Sep 17 00:00:00 2001 From: Finn Date: Mon, 4 Jun 2018 15:48:21 +0100 Subject: [PATCH] updated stats test --- t/api/stats.t | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/t/api/stats.t b/t/api/stats.t index c7922af..0c35519 100644 --- a/t/api/stats.t +++ b/t/api/stats.t @@ -55,10 +55,6 @@ $t->post_ok('/api/stats/customer' => json => { sum => 118, count => 6, }) - ->json_is('/sectors', { - sectors => ['A'], - purchases => [118], - }) ->json_is('/data', { cat_total => { Uncategorised => 810, @@ -88,6 +84,10 @@ $t->post_ok('/api/stats/customer' => json => { cat_total => { Uncategorised => 810, }, + cat_list => [{ + category => "Uncategorised", + value => 1180, + }], essentials => { purchase_no_essential_total => 0, purchase_no_total => 118,