Skip to content

Commit

Permalink
Remove redudant test prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
afcapel committed Nov 13, 2023
1 parent 4cd1af1 commit 133deb6
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 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()

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 completed notifies adapter", async () => {
test("visit completed notifies adapter", async () => {
const locatable = window.location.toString()

Turbo.navigator.startVisit(locatable)
Expand All @@ -108,7 +108,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()

Turbo.navigator.startVisit(locatable)
Expand All @@ -121,7 +121,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()

Turbo.navigator.startVisit(locatable)
Expand All @@ -134,7 +134,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()

Turbo.navigator.startVisit(locatable)
Expand All @@ -147,7 +147,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()

Turbo.navigator.startVisit(locatable)
Expand All @@ -160,15 +160,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 @@ -177,7 +177,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 133deb6

Please sign in to comment.