Skip to content

Commit 3434687

Browse files
committed
Add a test
1 parent d49f6bf commit 3434687

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

vector/src/test/java/im/vector/app/features/location/LocationDataTest.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
package im.vector.app.features.location
1818

1919
import org.amshove.kluent.shouldBeEqualTo
20+
import org.amshove.kluent.shouldBeFalse
2021
import org.amshove.kluent.shouldBeNull
2122
import org.amshove.kluent.shouldBeTrue
2223
import org.junit.Test
@@ -80,6 +81,9 @@ class LocationDataTest {
8081

8182
val contentWithSelfAssetType = MessageLocationContent(body = "", geoUri = "", unstableLocationAsset = LocationAsset(type = LocationAssetType.SELF))
8283
contentWithSelfAssetType.isSelfLocation().shouldBeTrue()
84+
85+
val contentWithPinAssetType = MessageLocationContent(body = "", geoUri = "", unstableLocationAsset = LocationAsset(type = LocationAssetType.PIN))
86+
contentWithPinAssetType.isSelfLocation().shouldBeFalse()
8387
}
8488

8589
@Test

0 commit comments

Comments
 (0)