fixed stats test

This commit is contained in:
Finn 2017-12-15 15:05:04 +00:00
parent 88aa5becff
commit 229c2bb801

View file

@ -42,8 +42,8 @@ $t->post_ok('/api/stats' => json => {
session_key => $session_key, session_key => $session_key,
}) })
->status_is(200)->or($framework->dump_error) ->status_is(200)->or($framework->dump_error)
->json_is('/data', { ->json_is('/weeks', {
purchases => [ 12, 19, 21, 20, 21, 20, 5 ], purchases => [ 8, 21, 19, 22, 20, 20, 8 ],
}); });
sub create_random_transaction { sub create_random_transaction {