Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jayohms committed Feb 23, 2024
1 parent ae6e28b commit fff0fb6
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit fff0fb6

Please sign in to comment.