Content-Length: 266532 | pFad | http://github.com/github/include-fragment-element/commit/45014a6576b1ae5d726846be26668b2f40cb6643

C4 Update test/test.js · github/include-fragment-element@45014a6 · GitHub
Skip to content

Commit 45014a6

Browse files
manuelpuyolCopilot
andauthored
Update test/test.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 4d5d1fe commit 45014a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,8 @@ suite('include-fragment-element', function () {
342342
const event = await when(div.firstChild, 'error')
343343
assert.equal(event.bubbles, false)
344344
assert.equal(event.cancelable, false)
345-
assert.equal(event.detail.error, 'Error: Failed to load resource: the server responded with a status of 500')
345+
assert.instanceOf(event.detail.error, Error)
346+
assert.equal(event.detail.error.message, 'Failed to load resource: the server responded with a status of 500')
346347
})
347348

348349
test('adds is-error class on 500 status', async function () {

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/github/include-fragment-element/commit/45014a6576b1ae5d726846be26668b2f40cb6643

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy