0
我有一个kendo排序的现有案例,我试图使用业力和茉莉测试提示函数。有关如何使用Kendo Sortable模拟拖动事件以便调用提示函数的任何想法?Kendo Sortable + Karma:单元测试提示功能
$element.find("#sortable-container").kendoSortable({
axis: "none",
cursor: "move",
container: "#sortable-container",
hint: function (element) { //this is not called and is messing with my karma coverage
var elementHint = element.clone();
elementHint.find('[ng-transclude=""]').removeAttr("ng-transclude");
elementHint.find(".hw-closeable").removeClass("hw-closeable");
return elementHint.addClass("sortable-tooltip");
}
});