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.
1 parent b559b99 commit 165f6c9Copy full SHA for 165f6c9
firebase-database/src/commonTest/kotlin/dev.gitlive.firebase.database/database.kt
@@ -34,4 +34,19 @@ class database {
34
Firebase.database.useEmulator(emulatorHost, 8080)
35
}
36
37
+
38
+ @Test
39
+ fun testSetValue() = runTest {
40
+ val testValue = "test"
41
+ val testReference = Firebase.database.reference("testPath")
42
43
+ testReference.setValue(testValue)
44
45
+ val testReferenceValue = testReference
46
+ .valueEvents
47
+ .first()
48
+ .value<String>()
49
50
+ assertEquals(testValue, testReferenceValue)
51
+ }
52
0 commit comments