widget graph test fixed
This commit is contained in:
parent
b2627eea4f
commit
60615e9b4a
1 changed files with 1 additions and 1 deletions
|
@ -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 )),
|
||||||
|
|
Reference in a new issue