Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Commit 2ce617f

Browse files
committed
tests(sortable): add one more sorting to 'appendTo' test case
1 parent 34ed7bf commit 2ce617f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/sortable.e2e.spec.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,12 @@ describe('uiSortable', function() {
401401
expect($rootScope.items).toEqual(['One', 'Three', 'Two']);
402402
expect($rootScope.items).toEqual(listContent(element));
403403

404+
li = element.find(':eq(2)');
405+
dy = -(1 + EXTRA_DY_PERCENTAGE) * li.outerHeight();
406+
li.simulate('drag', { dy: dy });
407+
expect($rootScope.items).toEqual(['One', 'Two', 'Three']);
408+
expect($rootScope.items).toEqual(listContent(element));
409+
404410
$(element).remove();
405411
});
406412
});

0 commit comments

Comments
 (0)