Fixing test.

hide_posts
Dessalines 2024-02-28 12:25:51 -05:00
parent 8ce7b6c496
commit de98a3a12e
1 changed files with 6 additions and 1 deletions

View File

@ -1521,7 +1521,12 @@ mod tests {
assert_eq!(vec![POST_BY_BOT, POST], names(&post_listings_show_hidden)); assert_eq!(vec![POST_BY_BOT, POST], names(&post_listings_show_hidden));
// Make sure that hidden field is true. // Make sure that hidden field is true.
assert!(&post_listings_show_hidden[0].hidden); assert!(
&post_listings_show_hidden
.first()
.expect("first post should exist")
.hidden
);
cleanup(data, pool).await cleanup(data, pool).await
} }