For custom directive, how to mock values for offset width and scroll width? By default its taking as 0.
link: function(scope, element, attr){
element.bind('click',function(){
if (element[0].offsetWidth < element[0].scrollWidth){
console.log("Element");
}
});
}