Skip to content

Commit 382c07a

Browse files
author
Hesam Bahrami
authored
test: fixing the broken logic of a dragend event test (#23)
1 parent 102cf25 commit 382c07a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/main.test.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,9 +366,10 @@ describe('NestedSort', () => {
366366
el: `#${dynamicListWrapperId}`,
367367
})
368368

369-
const item = document.querySelector('[data-id="1"]')
369+
ns.draggedNode = document.querySelector('[data-id="1"]')
370370
const stopPropagation = jest.fn()
371-
item.dispatchEvent(
371+
372+
ns.draggedNode.dispatchEvent(
372373
createEvent('dragend', {
373374
stopPropagation,
374375
})

0 commit comments

Comments
 (0)