feat(log): rudimentary logging

- Changed route `subscribe` into `subscriptions`
This commit is contained in:
2024-05-06 00:49:17 -04:00
parent 2c9dab01bb
commit ccf49ee214
7 changed files with 116 additions and 9 deletions

View File

@@ -11,7 +11,7 @@ async fn subscribe_returns_a_200_for_valid_form_data() {
let body = "name=le%20test&email=le_test%40gmail.com";
let response = client
.post(&format!("{}/subscribe", &test_app.address))
.post(&format!("{}/subscriptions", &test_app.address))
.header("Content-Type", "application/x-www-form-urlencoded")
.body(body)
.send()
@@ -44,7 +44,7 @@ async fn subscribe_returns_a_400_when_data_is_missing() {
for (invalid_body, error_message) in test_cases {
let response = client
.post(&format!("{}/subscribe", &test_app.address))
.post(&format!("{}/subscriptions", &test_app.address))
.header("Content-Type", "application/x-www-form-urlencoded")
.body(invalid_body)
.send()