Skip to content

Commit

Permalink
Use stringValue instead of value in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zeienko-vitalii committed Feb 14, 2024
1 parent 7f323de commit 5d182dc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions FlagsmithClient/src/test/java/com/flagsmith/TraitsTests.kt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class TraitsTests {
assertTrue(result.getOrThrow().isNotEmpty())
assertEquals(
"electric pink",
result.getOrThrow().find { trait -> trait.key == "favourite-colour" }?.value
result.getOrThrow().find { trait -> trait.key == "favourite-colour" }?.stringValue
)
}
}
Expand All @@ -54,7 +54,7 @@ class TraitsTests {
val result = flagsmith.getTraitsSync("person")
assertTrue(result.isSuccess)
assertTrue(result.getOrThrow().isNotEmpty())
assertNull(result.getOrThrow().find { trait -> trait.key == "fake-trait" }?.value)
assertNull(result.getOrThrow().find { trait -> trait.key == "fake-trait" }?.stringValue)
}
}

Expand All @@ -64,7 +64,7 @@ class TraitsTests {
runBlocking {
val result = flagsmith.getTraitSync("favourite-colour", "person")
assertTrue(result.isSuccess)
assertEquals("electric pink", result.getOrThrow()?.value)
assertEquals("electric pink", result.getOrThrow()?.stringValue)
}
}

Expand Down Expand Up @@ -140,7 +140,7 @@ class TraitsTests {
assertTrue(result.getOrThrow().flags.isNotEmpty())
assertEquals(
"electric pink",
result.getOrThrow().traits.find { trait -> trait.key == "favourite-colour" }?.value
result.getOrThrow().traits.find { trait -> trait.key == "favourite-colour" }?.stringValue
)
}
}
Expand Down

0 comments on commit 5d182dc

Please sign in to comment.