From 1116d53e49b5129ba5e781812c9cc534e205b74a Mon Sep 17 00:00:00 2001 From: Austin Rooks Date: Fri, 22 Mar 2024 20:49:58 -0500 Subject: [PATCH] update tests --- tests/api/blog.rs | 4 ++-- tests/api/projects.rs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/api/blog.rs b/tests/api/blog.rs index a5e78f8..75f8fed 100644 --- a/tests/api/blog.rs +++ b/tests/api/blog.rs @@ -15,8 +15,8 @@ async fn it_returns_the_blog_page_with_full_template() { let body = response.text().await.unwrap(); assert!(body.contains("bl0g")); - // Text from the header. - assert!(body.contains("pr0jects")); + // More than just a snippet of HTML is returned. + assert!(body.contains("")); // Text from the footer. assert!(body.contains("©")); } diff --git a/tests/api/projects.rs b/tests/api/projects.rs index 128714f..72976fa 100644 --- a/tests/api/projects.rs +++ b/tests/api/projects.rs @@ -1,7 +1,7 @@ use crate::helpers::start_test_app; #[tokio::test] -async fn it_returns_the_blog_page_with_full_template() { +async fn it_returns_the_projects_page_with_full_template() { let addr = start_test_app() .await .expect("Unable to start test server."); @@ -14,8 +14,8 @@ async fn it_returns_the_blog_page_with_full_template() { let body = response.text().await.unwrap(); - // Text from the header. - assert!(body.contains("pr0jects")); + // More than just a snippet is returned + assert!(body.contains("")); // Text from the footer. assert!(body.contains("©")); }