updated stats test

This commit is contained in:
Finn 2018-06-04 15:48:21 +01:00
parent 6741aba746
commit 0f98f22404

View file

@ -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,