@@ -196,7 +196,7 @@ class PresenceTest {
196
196
@Test
197
197
internal fun `onJoins new presences and onLeaves left presences` () {
198
198
val newState = fixState
199
- var state = mutableMapOf (
199
+ var state: MutableMap < String , MutableMap < String , List < Map < String , Any >>>> = mutableMapOf (
200
200
" u4" to mutableMapOf (" metas" to listOf (mapOf (" id" to 4 , " phx_ref" to " 4" ))))
201
201
202
202
val joined: PresenceDiff = mutableMapOf ()
@@ -245,9 +245,9 @@ class PresenceTest {
245
245
246
246
@Test
247
247
internal fun `onJoins only newly added metas` () {
248
- var state = mutableMapOf (
248
+ var state: MutableMap < String , MutableMap < String , List < Map < String , Any >>>> = mutableMapOf (
249
249
" 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 (
251
251
" u3" to mutableMapOf (" metas" to listOf (
252
252
mapOf (" id" to 3 , " phx_ref" to " 3" ),
253
253
mapOf (" id" to 3 , " phx_ref" to " 3.new" )
@@ -285,9 +285,9 @@ class PresenceTest {
285
285
286
286
@Test
287
287
internal fun `onLeaves only newly removed metas` () {
288
- val newState = mutableMapOf (
288
+ val newState: MutableMap < String , MutableMap < String , List < Map < String , Any >>>> = mutableMapOf (
289
289
" 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 (
291
291
" u3" to mutableMapOf (" metas" to listOf (
292
292
mapOf (" id" to 3 , " phx_ref" to " 3" ),
293
293
mapOf (" id" to 3 , " phx_ref" to " 3.left" )
@@ -326,13 +326,13 @@ class PresenceTest {
326
326
327
327
@Test
328
328
internal fun `syncs both joined and left metas` () {
329
- val newState = mutableMapOf (
329
+ val newState: MutableMap < String , MutableMap < String , List < Map < String , Any >>>> = mutableMapOf (
330
330
" u3" to mutableMapOf (" metas" to listOf (
331
331
mapOf (" id" to 3 , " phx_ref" to " 3" ),
332
332
mapOf (" id" to 3 , " phx_ref" to " 3.new" )
333
333
)))
334
334
335
- var state = mutableMapOf (
335
+ var state: MutableMap < String , MutableMap < String , List < Map < String , Any >>>> = mutableMapOf (
336
336
" u3" to mutableMapOf (" metas" to listOf (
337
337
mapOf (" id" to 3 , " phx_ref" to " 3" ),
338
338
mapOf (" id" to 3 , " phx_ref" to " 3.left" )
@@ -421,13 +421,13 @@ class PresenceTest {
421
421
422
422
@Test
423
423
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 (
425
425
" u1" to mutableMapOf (" metas" to listOf (
426
426
mapOf (" id" to 1 , " phx_ref" to " 1" ),
427
427
mapOf (" id" to 1 , " phx_ref" to " 1.2" )
428
428
)))
429
429
430
- val leaves = mutableMapOf (
430
+ val leaves: MutableMap < String , MutableMap < String , List < Map < String , Any >>>> = mutableMapOf (
431
431
" u1" to mutableMapOf (" metas" to listOf (
432
432
mapOf (" id" to 1 , " phx_ref" to " 1" )
433
433
)))
0 commit comments