From 381ed628ff4d044eaf8494853255ddff55782426 Mon Sep 17 00:00:00 2001 From: Thodoris Greasidis Date: Mon, 8 Sep 2014 00:17:59 +0300 Subject: [PATCH] tests: fix configuration of custom helper function + cancel() test --- test/sortable.e2e.callbacks.spec.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/sortable.e2e.callbacks.spec.js b/test/sortable.e2e.callbacks.spec.js index 5be87d7..50b182b 100644 --- a/test/sortable.e2e.callbacks.spec.js +++ b/test/sortable.e2e.callbacks.spec.js @@ -73,6 +73,9 @@ describe('uiSortable', function() { element = $compile('')($rootScope); $rootScope.$apply(function() { $rootScope.opts = { + helper: function (e, item) { + return item; + }, update: function(e, ui) { if (ui.item.scope().item === 'Two') { ui.item.sortable.cancel();