♻️ Turn new elements properties into methods
[Sone.git] / src / test / kotlin / net / pterodactylus / sone / web / NewElementsTest.kt
index 34dfe66..ccda1c7 100644 (file)
@@ -64,24 +64,24 @@ class NewElementsTest {
 
        @Test
        fun `new posts include new and local posts`() {
-               assertThat(newElements.newPosts, containsInAnyOrder(post1, post2))
+               assertThat(newElements.newPosts(), containsInAnyOrder(post1, post2))
        }
 
        @Test
        fun `new posts are filtered`() {
                val newElements = NewElements(newPostNotification, newReplyNotification, localPostNotification, localReplyNotification, matchThisPost(post2), showAllReplies)
-               assertThat(newElements.newPosts, contains(post2))
+               assertThat(newElements.newPosts(), contains(post2))
        }
 
        @Test
        fun `new replies include new and local replies`() {
-               assertThat(newElements.newReplies, containsInAnyOrder(reply1, reply2))
+               assertThat(newElements.newReplies(), containsInAnyOrder(reply1, reply2))
        }
 
        @Test
        fun `new replies are filtered`() {
                val newElements = NewElements(newPostNotification, newReplyNotification, localPostNotification, localReplyNotification, showAllPosts, matchThisReply(reply2))
-               assertThat(newElements.newReplies, containsInAnyOrder(reply2))
+               assertThat(newElements.newReplies(), containsInAnyOrder(reply2))
        }
 
 }