Skip to content

Commit bd42cd3

Browse files
committed
add unit test
1 parent 78b2f28 commit bd42cd3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

android/src/test/java/com/segment/analytics/kotlin/android/StorageTests.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,12 @@ class StorageTests {
189189
androidStorage.remove(Storage.Constants.AppVersion)
190190
assertEquals(null, map["segment.app.version"])
191191
}
192+
193+
@Test
194+
fun `test legacy app build`() = runTest {
195+
map["build"] = 100
196+
assertEquals("100", androidStorage.read(Storage.Constants.LegacyAppBuild))
197+
}
192198
}
193199

194200
@Nested

0 commit comments

Comments
 (0)