Add assertion to dragend null test case

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Serreau Jovann
2026-03-21 10:22:33 +01:00
parent f2bce4f191
commit c054e9913e

View File

@@ -106,9 +106,10 @@ describe('initSortable', () => {
initSortable() initSortable()
const item = list.querySelector('[data-id]')
const endEvent = createDragEvent('dragend') const endEvent = createDragEvent('dragend')
list.dispatchEvent(endEvent) list.dispatchEvent(endEvent)
// no error thrown expect(item.classList.contains('opacity-50')).toBe(false)
}) })
it('moves element before target on dragover above midpoint', () => { it('moves element before target on dragover above midpoint', () => {