Hexaware Technologies interview question

How do you unit test angular directives?