mirror of
https://github.com/kristoferssolo/zero2prod.git
synced 2026-02-04 06:42:07 +00:00
feat(logs): add basic logging
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user