Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
andreeap committed Apr 14, 2015
1 parent 75f1f7e commit 05daef5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion t/server/controller/search/autocomplete.t
Expand Up @@ -5,6 +5,7 @@ use lib 't/lib';
use MetaCPAN::Server::Test;
use MetaCPAN::TestHelpers;
use Test::More;
use DDP;

test_psgi app, sub {
my $cb = shift;
Expand All @@ -15,8 +16,9 @@ test_psgi app, sub {
'GET' );
my $json = decode_json_ok($res);

my $got = [ map { $_->{fields}{documentation} }
my $got = [ map { @{ $_->{fields}{documentation} } }
@{ $json->{hits}{hits} } ];
diag p $got;

is_deeply $got, [
qw(
Expand Down

0 comments on commit 05daef5

Please sign in to comment.