This is my directive
.directive('xDirective', ['x', 'y', function (x, y) {
return {
restrict: 'CA',
link: function (scope, element, attrs, messaging) {
//console.log(scope);
//console.log(element);
//console.log(attrs);
if (x.isResponsive && x.responsiveMode === y.responsive.mode.phone) {
//set the height of the header based on the device height
var offset = (attrs.heightOffset ? attrs.heightOffset : 0);
element.css("height", (x.device.height - offset) + 60 + "px");
}
}
};
}])
where x and y are the dependencies to the directive..i want to unit test this directive..how do i go ahead using jasmine.
Thanks.