Create a test; add some documentation

This commit is contained in:
swagg boi 2022-07-22 18:43:01 -04:00
parent 59c8153ef4
commit 746f7e6b6f
2 changed files with 28 additions and 0 deletions

View file

@ -2,6 +2,20 @@
A textboard written in Perl A textboard written in Perl
## Running locally
Run it in development mode
$ morbo PostText.pl
Now try requesting http://localhost:3000
## Testing
Run the tests locally (development mode)
$ prove -l
## TODOs ## TODOs
1. Where is prototype lmao 1. Where is prototype lmao

14
t/root.t Normal file
View file

@ -0,0 +1,14 @@
#!/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);
$t->get_ok('/')->status_is(200);
done_testing();