Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Dancer Test scripts

use strict;
use warnings;

use Test::More tests => 1;
use_ok 'D2::Ajax';
use strict;
use warnings;

use D2::Ajax;
use Test::More tests => 2;
use Plack::Test;
use HTTP::Request::Common;

my $app = D2::Ajax->to_app;
is( ref $app, 'CODE', 'Got app' );

my $test = Plack::Test->create($app);
my $res  = $test->request( GET '/' );

ok( $res->is_success, '[GET /] successful' );