Skip to content

Commit 8809047

Browse files
committed
remove click handler of all buttons
1 parent 983ed32 commit 8809047

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎test/test.js‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ describe('hotkey', function() {
2222
})
2323

2424
afterEach(function() {
25+
for (const button of document.querySelectorAll('button')) {
26+
button.removeEventListener('click', buttonClickHandler)
27+
}
2528
for (const button of document.querySelectorAll('[data-hotkey]')) {
2629
hotkey.uninstall(button)
2730
}

0 commit comments

Comments
 (0)