Skip to content

Fix typo from occured to occurred #107

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ suite('include-fragment-element', function () {
}, 100)

await when(div.firstChild, 'load')
assert.ok(!failed, 'Load occured too early')
assert.ok(!failed, 'Load occurred too early')
Copy link
Preview

Copilot AI May 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The typo in the error message has been corrected from 'occured' to 'occurred'.

Copilot uses AI. Check for mistakes.

})

test('loading=lazy does not observably change during load cycle', async function () {
Expand Down Expand Up @@ -568,7 +568,7 @@ suite('include-fragment-element', function () {
}, 100)

await when(div.firstChild, 'load')
assert.ok(!failed, 'Load occured too early')
assert.ok(!failed, 'Load occurred too early')
Copy link
Preview

Copilot AI May 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The typo in the error message has been corrected from 'occured' to 'occurred'.

Copilot uses AI. Check for mistakes.

})

test('loading=lazy wont load twice even if load is manually called', async function () {
Expand All @@ -587,7 +587,7 @@ suite('include-fragment-element', function () {

await load
await replacedPromise
assert.equal(loadCount, 1, 'Load occured too many times')
assert.equal(loadCount, 1, 'Load occurred too many times')
Copy link
Preview

Copilot AI May 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The typo in the error message has been corrected from 'occured' to 'occurred'.

Copilot uses AI. Check for mistakes.

assert.equal(document.querySelector('include-fragment'), null)
assert.equal(document.querySelector('#replaced').textContent, 'hello')
})
Expand All @@ -606,7 +606,7 @@ suite('include-fragment-element', function () {
}, 0)

await when(div.firstChild, 'include-fragment-replaced')
assert.equal(loadCount, 1, 'Load occured too many times')
assert.equal(loadCount, 1, 'Load occurred too many times')
Copy link
Preview

Copilot AI May 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The typo in the error message has been corrected from 'occured' to 'occurred'.

Copilot uses AI. Check for mistakes.

assert.equal(document.querySelector('include-fragment'), null)
assert.equal(document.querySelector('#replaced').textContent, 'hello')
})
Expand Down