Skip to content

Commit

Permalink
Explicitly test that visit.hasCachedSnapshot() returns a boolean, whi…
Browse files Browse the repository at this point in the history
…ch is what the native adapters expect
  • Loading branch information
jayohms committed Nov 2, 2023
1 parent 958e807 commit 60cfbee
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/tests/unit/native_adapter_support_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,15 @@ test("test visit started notifies adapter", async () => {
assert.equal(visit.location, locatable)
})

test("test visit has cached snapshot returns boolean", async () => {
const locatable = window.location.toString()

await Turbo.navigator.startVisit(locatable)

const [visit] = adapter.startedVisits
assert.equal(visit.hasCachedSnapshot(), false)
})

test("test visit completed notifies adapter", async () => {
const locatable = window.location.toString()

Expand Down

0 comments on commit 60cfbee

Please sign in to comment.