Akron | 1419aad | 2021-09-22 18:45:44 +0200 | [diff] [blame] | 1 | use Mojo::Base -strict; |
| 2 | use Test::More; |
| 3 | use Test::Mojo; |
| 4 | |
| 5 | # Test the documentation |
| 6 | my $t = Test::Mojo->new('Kalamar' => { |
| 7 | Kalamar => { |
| 8 | plugins => ['DemoServer'] |
| 9 | } |
| 10 | }); |
| 11 | |
| 12 | $t->get_ok('/demo/all.html') |
| 13 | ->status_is(200) |
| 14 | ->content_type_is('text/html;charset=UTF-8') |
| 15 | ->text_is('title', 'Complete Demo') |
| 16 | ; |
| 17 | |
| 18 | $t->get_ok('/demo/alldemo.js') |
| 19 | ->status_is(200) |
| 20 | ->content_type_is('application/javascript') |
| 21 | ->content_like(qr!'app/en'!) |
| 22 | ; |
Leo Repp | 5799740 | 2021-08-18 16:37:52 +0200 | [diff] [blame^] | 23 | |
Akron | 1419aad | 2021-09-22 18:45:44 +0200 | [diff] [blame] | 24 | done_testing; |
| 25 | __END__ |