diff --git a/t/example.t b/t/example.t index 890c4da..6ea4b4b 100644 --- a/t/example.t +++ b/t/example.t @@ -58,6 +58,14 @@ $registry->add_type( count => $xtra->{count}, total => 0+ @$data, } + }, + top_level_links => { + self => '/articles', + }, + links => { + self => sub($data,@) { + return "/articles/" . $data->{id}; + }, } } ); @@ -72,6 +80,9 @@ like $output => { "count"=> 2, "total"=> 1 }, + "links"=> { + "self"=> "/articles" + }, }; done_testing();