Skip to content

Commit

Permalink
update test server/controller/author
Browse files Browse the repository at this point in the history
  • Loading branch information
mickeyn committed Jul 11, 2016
1 parent d30c4ce commit d107578
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions t/server/controller/author.t
Expand Up @@ -119,6 +119,15 @@ test_psgi app, sub {
'release_count has the correct keys'
);

my $links = delete $doy->{links};
is_deeply(
[ sort keys %{$links} ],
[
qw< backpan_directory cpan_directory cpantesters_matrix cpantesters_reports cpants metacpan_explorer >
],
'links has the correct keys'
);

my $source = $json->{hits}->{hits}->[0]->{_source};
is_deeply( $doy, $source, 'same result as direct get' );

Expand Down

0 comments on commit d107578

Please sign in to comment.