@@ -196,7 +196,7 @@ class PresenceTest {
196196 @Test
197197 internal fun `onJoins new presences and onLeaves left presences` () {
198198 val newState = fixState
199- var state = mutableMapOf (
199+ var state: MutableMap < String , MutableMap < String , List < Map < String , Any >>>> = mutableMapOf (
200200 " u4" to mutableMapOf (" metas" to listOf (mapOf (" id" to 4 , " phx_ref" to " 4" ))))
201201
202202 val joined: PresenceDiff = mutableMapOf ()
@@ -245,9 +245,9 @@ class PresenceTest {
245245
246246 @Test
247247 internal fun `onJoins only newly added metas` () {
248- var state = mutableMapOf (
248+ var state: MutableMap < String , MutableMap < String , List < Map < String , Any >>>> = mutableMapOf (
249249 " u3" to mutableMapOf (" metas" to listOf (mapOf (" id" to 3 , " phx_ref" to " 3" ))))
250- val newState = mutableMapOf (
250+ val newState: MutableMap < String , MutableMap < String , List < Map < String , Any >>>> = mutableMapOf (
251251 " u3" to mutableMapOf (" metas" to listOf (
252252 mapOf (" id" to 3 , " phx_ref" to " 3" ),
253253 mapOf (" id" to 3 , " phx_ref" to " 3.new" )
@@ -285,9 +285,9 @@ class PresenceTest {
285285
286286 @Test
287287 internal fun `onLeaves only newly removed metas` () {
288- val newState = mutableMapOf (
288+ val newState: MutableMap < String , MutableMap < String , List < Map < String , Any >>>> = mutableMapOf (
289289 " u3" to mutableMapOf (" metas" to listOf (mapOf (" id" to 3 , " phx_ref" to " 3" ))))
290- var state = mutableMapOf (
290+ var state: MutableMap < String , MutableMap < String , List < Map < String , Any >>>> = mutableMapOf (
291291 " u3" to mutableMapOf (" metas" to listOf (
292292 mapOf (" id" to 3 , " phx_ref" to " 3" ),
293293 mapOf (" id" to 3 , " phx_ref" to " 3.left" )
@@ -326,13 +326,13 @@ class PresenceTest {
326326
327327 @Test
328328 internal fun `syncs both joined and left metas` () {
329- val newState = mutableMapOf (
329+ val newState: MutableMap < String , MutableMap < String , List < Map < String , Any >>>> = mutableMapOf (
330330 " u3" to mutableMapOf (" metas" to listOf (
331331 mapOf (" id" to 3 , " phx_ref" to " 3" ),
332332 mapOf (" id" to 3 , " phx_ref" to " 3.new" )
333333 )))
334334
335- var state = mutableMapOf (
335+ var state: MutableMap < String , MutableMap < String , List < Map < String , Any >>>> = mutableMapOf (
336336 " u3" to mutableMapOf (" metas" to listOf (
337337 mapOf (" id" to 3 , " phx_ref" to " 3" ),
338338 mapOf (" id" to 3 , " phx_ref" to " 3.left" )
@@ -421,13 +421,13 @@ class PresenceTest {
421421
422422 @Test
423423 internal fun `removes meta while leaving key if other metas exist` () {
424- var state = mutableMapOf (
424+ var state: MutableMap < String , MutableMap < String , List < Map < String , Any >>>> = mutableMapOf (
425425 " u1" to mutableMapOf (" metas" to listOf (
426426 mapOf (" id" to 1 , " phx_ref" to " 1" ),
427427 mapOf (" id" to 1 , " phx_ref" to " 1.2" )
428428 )))
429429
430- val leaves = mutableMapOf (
430+ val leaves: MutableMap < String , MutableMap < String , List < Map < String , Any >>>> = mutableMapOf (
431431 " u1" to mutableMapOf (" metas" to listOf (
432432 mapOf (" id" to 1 , " phx_ref" to " 1" )
433433 )))
0 commit comments