tests for new post notifications and dashboard stats
This commit is contained in:
@@ -34,7 +34,7 @@ async fn subscribe_persists_the_new_subscriber(connection_pool: PgPool) {
|
||||
let response = app.post_subscriptions(body).await;
|
||||
|
||||
assert!(response.status().is_success());
|
||||
let html_fragment = dbg!(response.text().await.unwrap());
|
||||
let html_fragment = response.text().await.unwrap();
|
||||
assert!(html_fragment.contains("You'll receive a confirmation email shortly"));
|
||||
|
||||
let saved = sqlx::query!("SELECT email, status FROM subscriptions")
|
||||
|
||||
Reference in New Issue
Block a user