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");
}
});