widget graph test fixed

This commit is contained in:
Finn 2017-12-14 17:22:09 +00:00
parent b2627eea4f
commit 60615e9b4a

View file

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