feat(logs): add basic logging

This commit is contained in:
Kristofers Solo
2024-03-24 13:07:01 +02:00
parent 84021b38dc
commit 06a1d24fc0
6 changed files with 336 additions and 24 deletions

View File

@@ -34,7 +34,7 @@ async fn subscribe_returns_200_for_valid_form_data() {
let body = "name=Kristofers%20Solo&email=dev%40kristofers.solo";
let response = client
.post(&format!("{}/subscribtions", &app.address))
.post(&format!("{}/subscriptions", &app.address))
.header("Content-Type", "application/x-www-form-urlencoded")
.body(body)
.send()
@@ -69,7 +69,7 @@ async fn subscribe_returns_400_when_data_is_missing() {
for (invalid_body, error_message) in test_cases {
let response = client
.post(&format!("{}/subscribtions", &app.address))
.post(&format!("{}/subscriptions", &app.address))
.header("Content-Type", "application/x-www-form-urlencoded")
.body(invalid_body)
.send()