From 7029ab517c2272377328ab34519626bcb5bc7370 Mon Sep 17 00:00:00 2001 From: Manager Bot Date: Thu, 24 Nov 2022 07:38:53 +0000 Subject: [PATCH] Add testing for static pages. --- Web/t/01_endpoints/05_root/01_index.t | 3 ++- Web/t/01_endpoints/05_root/02_about.t | 3 ++- Web/t/01_endpoints/05_root/03_contact.t | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Web/t/01_endpoints/05_root/01_index.t b/Web/t/01_endpoints/05_root/01_index.t index a34d42c..b56690d 100644 --- a/Web/t/01_endpoints/05_root/01_index.t +++ b/Web/t/01_endpoints/05_root/01_index.t @@ -4,6 +4,7 @@ use MJB::Web::Test; my $t = Test::Mojo::MJB->new('MJB::Web'); # Home Page Exists -$t->get_ok( '/' ); +$t->get_ok( '/' ) + ->status_is( 200 ); done_testing(); diff --git a/Web/t/01_endpoints/05_root/02_about.t b/Web/t/01_endpoints/05_root/02_about.t index 5586b50..bdf8255 100644 --- a/Web/t/01_endpoints/05_root/02_about.t +++ b/Web/t/01_endpoints/05_root/02_about.t @@ -4,6 +4,7 @@ use MJB::Web::Test; my $t = Test::Mojo::MJB->new('MJB::Web'); # About Page Exists -$t->get_ok( '/about' ); +$t->get_ok( '/about' ) + ->status_is( 200 ); done_testing(); diff --git a/Web/t/01_endpoints/05_root/03_contact.t b/Web/t/01_endpoints/05_root/03_contact.t index d94a872..0072115 100644 --- a/Web/t/01_endpoints/05_root/03_contact.t +++ b/Web/t/01_endpoints/05_root/03_contact.t @@ -4,6 +4,7 @@ use MJB::Web::Test; my $t = Test::Mojo::MJB->new('MJB::Web'); # Contact Page Exists -$t->get_ok( '/contact' ); +$t->get_ok( '/contact' ) + ->status_is( 200 ); done_testing();