Skip to content

Commit c17ae31

Browse files
authored
Update error message assertions in tests
1 parent 62642dc commit c17ae31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ suite('include-fragment-element', function () {
213213
await el.data
214214
throw new Error('el.data did not throw')
215215
} catch (error) {
216-
assert.match(error, /the server responded with a status of 406/)
216+
assert.match(error, /expected text\/html but was text\/plain/)
217217
}
218218
})
219219

@@ -343,7 +343,7 @@ 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: the server responded with a status of 500')
346+
assert.equal(event.detail.error.message, 'Failed to load resource: expected text/html but was text/plain;charset=UTF-8')
347347
})
348348

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

0 commit comments

Comments
 (0)