Skip to content

Commit

Permalink
Bring back test
Browse files Browse the repository at this point in the history
Orginally added by @jayohms in

60cfbee
  • Loading branch information
afcapel committed Nov 13, 2023
1 parent 133deb6 commit 7ed04f7
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("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("visit completed notifies adapter", async () => {
const locatable = window.location.toString()

Expand Down

0 comments on commit 7ed04f7

Please sign in to comment.