mirror of
https://github.com/LukeMathWalker/zero-to-production.git
synced 2024-12-19 06:26:35 +00:00
Fix tests
This commit is contained in:
parent
b40748ef7b
commit
c6d65cf113
1 changed files with 5 additions and 5 deletions
|
@ -103,7 +103,7 @@ mod tests {
|
||||||
|
|
||||||
/// Get a test instance of `EmailClient`.
|
/// Get a test instance of `EmailClient`.
|
||||||
fn email_client(base_url: String) -> EmailClient {
|
fn email_client(base_url: String) -> EmailClient {
|
||||||
let email_client = EmailClient::new(base_url, email(), Faker.fake());
|
EmailClient::new(base_url, email(), Faker.fake())
|
||||||
}
|
}
|
||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
|
@ -124,7 +124,7 @@ mod tests {
|
||||||
|
|
||||||
// Act
|
// Act
|
||||||
let _ = email_client
|
let _ = email_client
|
||||||
.send_email(subscriber_email(), &subject(), &content(), &content())
|
.send_email(email(), &subject(), &content(), &content())
|
||||||
.await;
|
.await;
|
||||||
|
|
||||||
// Assert
|
// Assert
|
||||||
|
@ -144,7 +144,7 @@ mod tests {
|
||||||
|
|
||||||
// Act
|
// Act
|
||||||
let outcome = email_client
|
let outcome = email_client
|
||||||
.send_email(subscriber_email(), &subject(), &content(), &content())
|
.send_email(email(), &subject(), &content(), &content())
|
||||||
.await;
|
.await;
|
||||||
|
|
||||||
// Assert
|
// Assert
|
||||||
|
@ -166,7 +166,7 @@ mod tests {
|
||||||
|
|
||||||
// Act
|
// Act
|
||||||
let outcome = email_client
|
let outcome = email_client
|
||||||
.send_email(subscriber_email(), &subject(), &content(), &content())
|
.send_email(email(), &subject(), &content(), &content())
|
||||||
.await;
|
.await;
|
||||||
|
|
||||||
// Assert
|
// Assert
|
||||||
|
@ -188,7 +188,7 @@ mod tests {
|
||||||
|
|
||||||
// Act
|
// Act
|
||||||
let outcome = email_client
|
let outcome = email_client
|
||||||
.send_email(subscriber_email(), &subject(), &content(), &content())
|
.send_email(email(), &subject(), &content(), &content())
|
||||||
.await;
|
.await;
|
||||||
|
|
||||||
// Assert
|
// Assert
|
||||||
|
|
Loading…
Reference in a new issue