From fff0fb624b4d1a815013b9c725bd386073766a0b Mon Sep 17 00:00:00 2001 From: Jay Ohms Date: Thu, 22 Feb 2024 22:28:20 -0500 Subject: [PATCH] Fix test --- .../kotlin/dev/hotwire/turbo/session/TurboSessionTest.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/turbo/src/test/kotlin/dev/hotwire/turbo/session/TurboSessionTest.kt b/turbo/src/test/kotlin/dev/hotwire/turbo/session/TurboSessionTest.kt index 0abde2e0..ce7a1b83 100644 --- a/turbo/src/test/kotlin/dev/hotwire/turbo/session/TurboSessionTest.kt +++ b/turbo/src/test/kotlin/dev/hotwire/turbo/session/TurboSessionTest.kt @@ -78,7 +78,12 @@ class TurboSessionTest { val visitIdentifier = "12345" session.currentVisit = visit.copy(identifier = visitIdentifier) - session.visitStarted(visitIdentifier, true, "https://turbo.hotwired.dev") + session.visitStarted( + visitIdentifier = visitIdentifier, + visitHasCachedSnapshot = true, + visitIsPageRefresh = false, + location = "https://turbo.hotwired.dev" + ) assertThat(session.currentVisit?.identifier).isEqualTo(visitIdentifier) }