mirror of https://github.com/LemmyNet/lemmy.git
Fixing test.
parent
8ce7b6c496
commit
de98a3a12e
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue