Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 27ebf4a

Browse files
chore: took care of cargo format
1 parent b844644 commit 27ebf4a

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

‎tests/api/newsletter.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,17 +171,21 @@ async fn newsletter_creation_is_idempotent() {
171171

172172
// Act - Part 2 - Follow the redirect
173173
let html_page = app.get_publish_newsletter_html().await;
174-
assert!(html_page.contains("<p><i>The newsletter issue has been accepted - \
175-
emails will go out shortly.</i></p>"));
174+
assert!(html_page.contains(
175+
"<p><i>The newsletter issue has been accepted - \
176+
emails will go out shortly.</i></p>"
177+
));
176178

177179
// Act - Part 3 - Submit newsletter form **again**
178180
let response = app.post_publish_newsletters(&newsletter_request_body).await;
179181
assert_is_redirected_to("/admin/newsletters", &response);
180182

181183
// Act - Part 4 - Follow the redirect
182184
let html_page = app.get_publish_newsletter_html().await;
183-
assert!(html_page.contains("<p><i>The newsletter issue has been accepted - \
184-
emails will go out shortly.</i></p>"));
185+
assert!(html_page.contains(
186+
"<p><i>The newsletter issue has been accepted - \
187+
emails will go out shortly.</i></p>"
188+
));
185189

186190
app.dispatch_all_pending_emails().await;
187191
// Mock verifies on Drop that we have sent the newsletter email **once**

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /