use Test::More import => ['!pass'];
use strict;
use warnings;

{
    use Dancer2;
    get '/foo' => sub {
        return uri_for('/foo');
    };
}

use Dancer2::Test;
response_status_is [ GET => '/foo' ], 200;

response_content_is [ GET => '/foo' ],
  'http://localhost/foo',
  "uri_for works as expected";

done_testing;
