working graphs on frontend

This commit is contained in:
Finn 2017-12-13 14:29:17 +00:00
parent 5b745f666b
commit 3b191e5c76
2 changed files with 8 additions and 10 deletions

View file

@ -44,7 +44,9 @@ $t->post_ok('/api/v1/customer/graphs' => json => {
})
->status_is(200)->or($framework->dump_error)
->json_is('/graph', {
labels => [ map { $start->clone->subtract( days => $_ )->day_name } reverse ( 0 .. 6 ) ],
labels => [ map { $t->app->format_iso_datetime(
$start->clone->subtract( days => $_ )->subtract( hours => 12 )
) } reverse ( 0 .. 6 ) ],
data => [ 10, 10, 10, 10, 10, 10, 10 ],
});