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

Commit f650628

Browse files
committed
tests: fix configuration of custom helper function + cancel() test
1 parent 6a7579f commit f650628

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/sortable.e2e.callbacks.spec.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ describe('uiSortable', function() {
7272
element = $compile('<ul ui-sortable="opts" ng-model="items"><li ng-repeat="item in items" id="s-{{$index}}">{{ item }}</li></ul>')($rootScope);
7373
$rootScope.$apply(function() {
7474
$rootScope.opts = {
75+
helper: function (e, item) {
76+
return item;
77+
},
7578
update: function(e, ui) {
7679
if (ui.item.scope().item === 'Two') {
7780
ui.item.sortable.cancel();

0 commit comments

Comments
 (0)