Skip to content

Commit

Permalink
fix: Fix PolymorphicListAsMapSerializer.Config in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
0ffz committed Jul 29, 2024
1 parent 7c14aa3 commit 4d8c730
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class GearyEntitySerializerTest {
// act
val entity =
format.decodeFromString(GearyEntitySerializer, file, overrideSerializersModule = SerializersModule {
provideConfig(PolymorphicListAsMapSerializer.Config(namespaces = listOf("test")))
provideConfig(PolymorphicListAsMapSerializer.Config<Any>(namespaces = listOf("test")))
})

// assert
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class SerializerTest {
subclass(B::class)
subclass(SubSerializers::class)
}
provideConfig(PolymorphicListAsMapSerializer.Config(namespaces = listOf("test")))
provideConfig(PolymorphicListAsMapSerializer.Config<Any>(namespaces = listOf("test")))
})

val mapSerializer = PolymorphicListAsMapSerializer(PolymorphicSerializer(Components::class))
Expand Down

0 comments on commit 4d8c730

Please sign in to comment.