From 2577b95605c7f6c8c075a6f4dfefeb361e838201 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,