Hexaware Technologies Interview Question

How do you unit test angular directives?