Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d5d1fe commit 45014a6Copy full SHA for 45014a6
test/test.js
@@ -342,7 +342,8 @@ suite('include-fragment-element', function () {
342
const event = await when(div.firstChild, 'error')
343
assert.equal(event.bubbles, false)
344
assert.equal(event.cancelable, false)
345
- assert.equal(event.detail.error, 'Error: Failed to load resource: the server responded with a status of 500')
+ 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')
347
})
348
349
test('adds is-error class on 500 status', async function () {
0 commit comments