I make some unit test in my angular project with karma and jasmine.
In a directive I have a resizable jquery-ui function on an element :
element.find(".wt-tools-content").resizable({
resize: function (event, ui) {
my_action
}
});
And I can't trigger it in my test with jasmine, I try :
element.find(".wt-tools-content").trigger('resizable');
element.find(".wt-tools-content").resizable().trigger('resize');
And so many combination but I can't find how I can't trigger and test the code inside the resize function. I'm sure element in the directive and element in the jasmine test file is the same ;)
Someone can help me ?
Thank you ;)