mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-01-28 09:59:29 +01:00
Add a test
This commit is contained in:
parent
d49f6bfbb6
commit
343468717c
@ -17,6 +17,7 @@
|
||||
package im.vector.app.features.location
|
||||
|
||||
import org.amshove.kluent.shouldBeEqualTo
|
||||
import org.amshove.kluent.shouldBeFalse
|
||||
import org.amshove.kluent.shouldBeNull
|
||||
import org.amshove.kluent.shouldBeTrue
|
||||
import org.junit.Test
|
||||
@ -80,6 +81,9 @@ class LocationDataTest {
|
||||
|
||||
val contentWithSelfAssetType = MessageLocationContent(body = "", geoUri = "", unstableLocationAsset = LocationAsset(type = LocationAssetType.SELF))
|
||||
contentWithSelfAssetType.isSelfLocation().shouldBeTrue()
|
||||
|
||||
val contentWithPinAssetType = MessageLocationContent(body = "", geoUri = "", unstableLocationAsset = LocationAsset(type = LocationAssetType.PIN))
|
||||
contentWithPinAssetType.isSelfLocation().shouldBeFalse()
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Loading…
x
Reference in New Issue
Block a user