diff --git a/tests/js/sortable.test.js b/tests/js/sortable.test.js index b4614ec..656e709 100644 --- a/tests/js/sortable.test.js +++ b/tests/js/sortable.test.js @@ -106,9 +106,10 @@ describe('initSortable', () => { initSortable() + const item = list.querySelector('[data-id]') const endEvent = createDragEvent('dragend') list.dispatchEvent(endEvent) - // no error thrown + expect(item.classList.contains('opacity-50')).toBe(false) }) it('moves element before target on dragover above midpoint', () => {