Skip to content

Commit

Permalink
Remove the "test " prefix from the native adapter unit tests, since o…
Browse files Browse the repository at this point in the history
…ther tests were recently updated to remove the prefix
  • Loading branch information
jayohms committed Nov 2, 2023
1 parent 60cfbee commit bf8829c
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/tests/unit/native_adapter_support_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ setup(() => {
Turbo.registerAdapter(adapter)
})

test("test navigator adapter is native adapter", async () => {
test("navigator adapter is native adapter", async () => {
assert.equal(adapter, Turbo.navigator.adapter)
})

test("test visit proposal location is proposed to adapter", async () => {
test("visit proposal location is proposed to adapter", async () => {
const url = new URL(window.location.toString())

Turbo.navigator.proposeVisit(url)
Expand All @@ -76,7 +76,7 @@ test("test visit proposal location is proposed to adapter", async () => {
assert.equal(visit.location, url)
})

test("test visit proposal external location is proposed to adapter", async () => {
test("visit proposal external location is proposed to adapter", async () => {
const url = new URL("https://example.com/")

Turbo.navigator.proposeVisit(url)
Expand All @@ -86,7 +86,7 @@ test("test visit proposal external location is proposed to adapter", async () =>
assert.equal(visit.location, url)
})

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

await Turbo.navigator.startVisit(locatable)
Expand All @@ -96,7 +96,7 @@ test("test visit started notifies adapter", async () => {
assert.equal(visit.location, locatable)
})

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

await Turbo.navigator.startVisit(locatable)
Expand All @@ -105,7 +105,7 @@ test("test visit has cached snapshot returns boolean", async () => {
assert.equal(visit.hasCachedSnapshot(), false)
})

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

await Turbo.navigator.startVisit(locatable)
Expand All @@ -117,7 +117,7 @@ test("test visit completed notifies adapter", async () => {
assert.equal(completedVisit.location, locatable)
})

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

await Turbo.navigator.startVisit(locatable)
Expand All @@ -130,7 +130,7 @@ test("test visit request started notifies adapter", async () => {
assert.equal(startedVisitRequest.location, locatable)
})

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

await Turbo.navigator.startVisit(locatable)
Expand All @@ -143,7 +143,7 @@ test("test visit request completed notifies adapter", async () => {
assert.equal(completedVisitRequest.location, locatable)
})

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

await Turbo.navigator.startVisit(locatable)
Expand All @@ -156,7 +156,7 @@ test("test visit request failed notifies adapter", async () => {
assert.equal(failedVisitRequest.location, locatable)
})

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

await Turbo.navigator.startVisit(locatable)
Expand All @@ -169,15 +169,15 @@ test("test visit request finished notifies adapter", async () => {
assert.equal(finishedVisitRequest.location, locatable)
})

test("test form submission started notifies adapter", async () => {
test("form submission started notifies adapter", async () => {
Turbo.navigator.formSubmissionStarted("formSubmissionStub")
assert.equal(adapter.startedFormSubmissions.length, 1)

const [startedFormSubmission] = adapter.startedFormSubmissions
assert.equal(startedFormSubmission, "formSubmissionStub")
})

test("test form submission finished notifies adapter", async () => {
test("form submission finished notifies adapter", async () => {
Turbo.navigator.formSubmissionFinished("formSubmissionStub")
assert.equal(adapter.finishedFormSubmissions.length, 1)

Expand All @@ -186,7 +186,7 @@ test("test form submission finished notifies adapter", async () => {
})


test("test visit follows redirect and proposes replace visit to adapter", async () => {
test("visit follows redirect and proposes replace visit to adapter", async () => {
const locatable = window.location.toString()
const redirectedLocation = "https://example.com"

Expand Down

0 comments on commit bf8829c

Please sign in to comment.