Skip to content

Commit

Permalink
✅ fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JBokMan committed Aug 9, 2024
1 parent fbe679f commit 1120f81
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
package de.sipgate.federmappe.realtimedb

import de.sipgate.federmappe.common.decoder.DataNormalizer
package de.sipgate.federmappe.common.decoder

class DummyDataNormalizer : DataNormalizer {
override fun normalize(data: Map<String, Any?>): Map<String, Any?> = data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class StringMapToObjectDecoder(
private val data: Map<String, Any?>,
override val serializersModule: SerializersModule = EmptySerializersModule(),
private val ignoreUnknownProperties: Boolean = false,
private val dataNormalizer: DataNormalizer
private val dataNormalizer: DataNormalizer = DummyDataNormalizer()
) : AbstractDecoder(), TypeAwareDecoder {
private val keysIterator = data.sortByPrio().keys.iterator()
private var index: Int? = null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package de.sipgate.federmappe.realtimedb
import com.google.firebase.database.DataSnapshot
import de.sipgate.federmappe.common.ErrorHandler
import de.sipgate.federmappe.common.decoder.DataNormalizer
import de.sipgate.federmappe.common.decoder.DummyDataNormalizer
import de.sipgate.federmappe.common.toObjectWithSerializer
import kotlinx.serialization.ExperimentalSerializationApi
import kotlinx.serialization.modules.EmptySerializersModule
Expand Down

0 comments on commit 1120f81

Please sign in to comment.