Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 350455b

Browse files
committed
Add test for -start not firing
1 parent e755c96 commit 350455b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/test.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,14 @@ describe('auto-check element', function() {
232232
input.dispatchEvent(new InputEvent('change'))
233233
input.dispatchEvent(new InputEvent('change'))
234234
})
235+
236+
it('do not emit if essential attributes are missing', async function() {
237+
const events = []
238+
checker.removeAttribute('src')
239+
input.addEventListener('auto-check-start', event => events.push(event.type))
240+
triggerChange(input, 'hub')
241+
assert.deepEqual(events, [])
242+
})
235243
})
236244
})
237245

0 commit comments

Comments
 (0)