We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8d83005 + f67d1c1 commit 96ccf89Copy full SHA for 96ccf89
firebase-database/src/commonTest/kotlin/dev.gitlive.firebase.database/database.kt
@@ -38,6 +38,21 @@ class FirebaseDatabaseTest {
38
}
39
40
41
+ @Test
42
+ fun testSetValue() = runTest {
43
+ val testValue = "test"
44
+ val testReference = Firebase.database.reference("testPath")
45
+
46
+ testReference.setValue(testValue)
47
48
+ val testReferenceValue = testReference
49
+ .valueEvents
50
+ .first()
51
+ .value<String>()
52
53
+ assertEquals(testValue, testReferenceValue)
54
+ }
55
56
@Test
57
fun testChildCount() = runTest {
58
setupRealtimeData()
0 commit comments