Skip to content

Commit

Permalink
Add test for search_descriptions().
Browse files Browse the repository at this point in the history
  • Loading branch information
oalders committed May 12, 2017
1 parent 13701be commit c0bb935
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions t/model/search.t
Expand Up @@ -61,6 +61,12 @@ ok( $search->_not_rogue, '_not_rogue' );
);
}

{
my $id = 'JatCtNR2RGjcBIs1Y5C_zTzNcXU';
my $results = $search->search_descriptions($id);
is_deeply( $results->{results}, { $id => 'TBD' }, 'search_descriptions' );
}

# favorites are also tested in t/server/controller/user/favorite.t
is_deeply( $search->search_favorites, {},
'empty hashref when no distributions' );
Expand Down

0 comments on commit c0bb935

Please sign in to comment.