From c054e9913ef0e3904ca230047b2a3fe1df15ad1a Mon Sep 17 00:00:00 2001 From: Serreau Jovann Date: Sat, 21 Mar 2026 10:22:33 +0100 Subject: [PATCH] Add assertion to dragend null test case Co-Authored-By: Claude Opus 4.6 (1M context) --- tests/js/sortable.test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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', () => {