Skip to content

Commit c7b1ca1

Browse files
authored
Refactor error message assertion in test
1 parent c17ae31 commit c7b1ca1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/test.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,10 @@ suite('include-fragment-element', function () {
343343
assert.equal(event.bubbles, false)
344344
assert.equal(event.cancelable, false)
345345
assert.instanceOf(event.detail.error, Error)
346-
assert.equal(event.detail.error.message, 'Failed to load resource: expected text/html but was text/plain;charset=UTF-8')
346+
assert.equal(
347+
event.detail.error.message,
348+
'Failed to load resource: expected text/html but was text/plain;charset=UTF-8',
349+
)
347350
})
348351

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

0 commit comments

Comments
 (0)