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 6dc7867 commit 17a778bCopy full SHA for 17a778b
test/test.js
@@ -210,6 +210,20 @@ suite('include-fragment-element', function() {
210
)
211
})
212
213
+ test('throws on 406', function() {
214
+ const el = document.createElement('include-fragment')
215
+ el.setAttribute('src', '/fragment')
216
+
217
+ return el.data.then(
218
+ () => {
219
+ assert.ok(false)
220
+ },
221
+ error => {
222
+ assert.match(error, /the server responded with a status of 406/)
223
+ }
224
+ )
225
+ })
226
227
test('data is not writable', function() {
228
const el = document.createElement('include-fragment')
229
assert.ok(el.data !== 42)
0 commit comments