From 8ce7b6c496caf94c7be9b7369bb6f78f3146314b Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 28 Feb 2024 11:46:18 -0500 Subject: [PATCH] Add a check to make sure hidden field is true. --- crates/db_views/src/post_view.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/db_views/src/post_view.rs b/crates/db_views/src/post_view.rs index 1a4e5bf61..d885fc997 100644 --- a/crates/db_views/src/post_view.rs +++ b/crates/db_views/src/post_view.rs @@ -1520,6 +1520,9 @@ mod tests { .await?; assert_eq!(vec![POST_BY_BOT, POST], names(&post_listings_show_hidden)); + // Make sure that hidden field is true. + assert!(&post_listings_show_hidden[0].hidden); + cleanup(data, pool).await }