Help for this page

Select Code to Download


  1. or download this
    local *LWP::UserAgent::get = sub { HTTP::Response->new(200, undef, und
    +ef, $response_data) };
    
  2. or download this
    my $test = $helper->run_test({   # wraps methods get_ok, post_ok etc f
    +rom Test::Mojo
        uri      => $some_endpoint,  # what we are testing
    ...
    });
    
    $test->json_is('/result/foo', 'bar'); # Test::Mojo methods used to tes
    +t the response