widget graph test fixed

This commit is contained in:
Finn 2017-12-14 17:22:09 +00:00
parent b2627eea4f
commit 60615e9b4a
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ $t->post_ok('/api/v1/customer/graphs' => json => {
->json_is('/graph', {
labels => [ map { $t->app->format_iso_datetime(
$start->clone->subtract( days => $_ )->subtract( hours => 12 )
) } reverse ( 0 .. 29 ) ],
) } reverse ( 0 .. 6 ) ],
bounds => {
min => $t->app->format_iso_datetime($start->clone->subtract( days => 6 )->subtract( hours => 12 ) ),
max => $t->app->format_iso_datetime($start->clone->add( hours => 12 )),