package com.seven.ikar.kotlin.core.push

import org.junit.Assert.assertFalse
import org.junit.Assert.assertTrue
import org.junit.Test

class PushDataTest {
    @Test
    fun messagePushesChangeChatData() {
        assertTrue(mapOf(PushDataKeys.Kind to PushDataKinds.ChatMessage).changesChatData())
        assertTrue(mapOf(PushDataKeys.Kind to PushDataKinds.MessageReaction).changesChatData())
    }

    @Test
    fun unrelatedPushesDoNotChangeChatData() {
        assertFalse(mapOf(PushDataKeys.Kind to PushDataKinds.AudioCallInvite).changesChatData())
        assertFalse(mapOf(PushDataKeys.Kind to PushDataKinds.AppUpdateAvailable).changesChatData())
        assertFalse(emptyMap<String, String>().changesChatData())
    }
}
