From ef91e36c468ba00880bce6131abd12fcb8422f4d Mon Sep 17 00:00:00 2001 From: Konstantin Date: Fri, 4 Oct 2024 21:08:19 +0200 Subject: [PATCH] fix: unit test --- .../providers/EnvironmentParameterProviderTest.kt | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/src/test/java/com/telemetrydeck/sdk/providers/EnvironmentParameterProviderTest.kt b/lib/src/test/java/com/telemetrydeck/sdk/providers/EnvironmentParameterProviderTest.kt index d29df74..49ec13f 100644 --- a/lib/src/test/java/com/telemetrydeck/sdk/providers/EnvironmentParameterProviderTest.kt +++ b/lib/src/test/java/com/telemetrydeck/sdk/providers/EnvironmentParameterProviderTest.kt @@ -23,8 +23,9 @@ class EnvironmentParameterProviderTest { Assert.assertNotNull(queuedSignal) Assert.assertEquals( - queuedSignal?.payload?.contains("TelemetryDeck.SDK.version:com.telemetrydeck.sdk"), - true + true, + queuedSignal?.payload?.contains("TelemetryDeck.SDK.version:com.telemetrydeck.sdk") + ) } @@ -40,8 +41,8 @@ class EnvironmentParameterProviderTest { Assert.assertNotNull(queuedSignal) Assert.assertEquals( - queuedSignal?.payload?.contains("telemetryClientVersion:my value"), - true + true, + queuedSignal?.payload?.contains("telemetryClientVersion:my value") ) } @@ -57,8 +58,8 @@ class EnvironmentParameterProviderTest { Assert.assertNotNull(queuedSignal) Assert.assertEquals( - queuedSignal?.payload?.contains("TelemetryDeck.SDK.buildType:debug"), - true + true, + queuedSignal?.payload?.filter { it.startsWith("TelemetryDeck.SDK.buildType:") }?.isNotEmpty() ) } } \ No newline at end of file