Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanegigandet committed Aug 2, 2022
1 parent c3f4f44 commit 0678b51
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/unit/display.t
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,16 @@ is( display_date_tag($t), '<time datetime="2016-08-27T12:08:49">27. August 2016
# );

my %request = (
'original_query_string'=>'/api/v0/attribute_groups',
'original_query_string'=>'api/v0/attribute_groups',
'referer'=>'http://world.openfoodfacts.localhost/product/3564703999971/huile-d-olive-marque-repere'
);

print STDERR "before analyze request\n";
analyze_request(\%request);
is ( $request{'api'},"v0");
is ( $request{'page'},"1");
is ( $request{'api_version'},"0");

print STDERR "after analyze request\n";

# paging tests
# issue # 1960 - negative query lost during pagination and in other links
Expand Down

0 comments on commit 0678b51

Please sign in to comment.