✅ Improve test for not added notification
[Sone.git] / src / test / kotlin / net / pterodactylus / sone / web / notification / NewSoneHandlerTest.kt
index 0774992..acdcf2f 100644 (file)
@@ -56,7 +56,7 @@ class NewSoneHandlerTest {
        fun `handler does not add notification on new sone event if first-start notification is present`() {
                notificationManager.firstStart()
                eventBus.post(NewSoneFoundEvent(sone))
-               assertThat(notificationManager.notifications.single().id, equalTo("first-start-notification"))
+               assertThat(notificationManager.notifications, not(contains<Notification>(notification)))
        }
 
        @Test