Skip to content

Commit e2638ba

Browse files
committed
refactor: remove unneeded async in useHotKey test
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
1 parent 3fc53ae commit e2638ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/composables/useHotKey.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ describe('useHotKey', () => {
4040
expect(mockCallback).not.toHaveBeenCalled()
4141
})
4242

43-
it('should not invoke callback by default, when a modal is shown', async () => {
43+
it('should not invoke callback by default, when a modal is shown', () => {
4444
const modal = document.createElement('div')
4545
modal.className = 'modal-mask'
4646
document.body.appendChild(modal)
@@ -53,7 +53,7 @@ describe('useHotKey', () => {
5353
expect(mockCallback).not.toHaveBeenCalled()
5454
})
5555

56-
it('should invoke callback by default, when a modal present but hidden', async () => {
56+
it('should invoke callback by default, when a modal present but hidden', () => {
5757
const modal = document.createElement('div')
5858
modal.className = 'modal-mask'
5959
modal.style.display = 'none'

0 commit comments

Comments
 (0)