2022-07-30 03:30:19 +00:00
|
|
|
#!/usr/bin/env perl
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
use Test::More;
|
|
|
|
use Mojo::File qw{curfile};
|
|
|
|
use Test::Mojo;
|
|
|
|
|
|
|
|
my $script = curfile->dirname->sibling('PostText.pl');
|
|
|
|
my $t = Test::Mojo->new($script);
|
|
|
|
|
2022-08-24 20:00:56 +00:00
|
|
|
$t->get_ok('/list' )->status_is(200)->text_like(h2 => qr/Threads List/);
|
|
|
|
$t->get_ok('/list/1')->status_is(200)->text_like(h2 => qr/Threads List/);
|
2022-07-30 03:30:19 +00:00
|
|
|
|
|
|
|
done_testing();
|