Skip to content

Commit

Permalink
run spotless apply
Browse files Browse the repository at this point in the history
  • Loading branch information
jimexist committed May 20, 2024
1 parent 641aa01 commit 0564865
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions posthog/src/test/java/com/posthog/PostHogTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -857,10 +857,11 @@ internal class PostHogTest {
@Test
fun `allows for modification of the uuid generation mechanism`() {
val expected = UUID.randomUUID()
val config = PostHogConfig(API_KEY, getDeviceId = {
assertNotEquals(it, expected, "Expect two unique UUIDs")
expected
})
val config =
PostHogConfig(API_KEY, getDeviceId = {
assertNotEquals(it, expected, "Expect two unique UUIDs")
expected
})
// now generate an event
val sut = PostHog.with(config)
assertEquals(expected.toString(), sut.distinctId(), "It should use the injected uuid instead")
Expand Down

0 comments on commit 0564865

Please sign in to comment.