Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
marandaneto committed Nov 12, 2024
1 parent ef2e552 commit 683fad2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions posthog/src/test/java/com/posthog/PostHogTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,9 @@ internal class PostHogTest {
userPropertiesSetOnce = userPropsOnce,
)

val userProps = mapOf("user1" to "theResult")
val userPropsOnce = mapOf("logged" to false)

sut.identify(
DISTINCT_ID,
userProperties = userProps,
Expand All @@ -612,6 +615,8 @@ internal class PostHogTest {
val theEvent = batch.batch.last()

assertEquals("\$set", theEvent.event)
assertEquals(userProps, theEvent.properties!!["\$set"])
assertEquals(userPropsOnce, theEvent.properties!!["\$set_once"])

sut.close()
}
Expand Down

0 comments on commit 683fad2

Please sign in to comment.