All Questions
3 questions with no upvoted or accepted answers
1vote
0answers
212views
Testing Directives events
I have a directive that $emit's an event, but in the parent scope of a unit test doesn't get the event. test $broadcasts an event to the directive, directive gets the event, and then directives $...
0votes
2answers
90views
How to test that an Angular directive runs a watch handler when its value changes
I have a directive which needs to re-evaluate when its value changes. The code is actually working fine, but I want to put in a test case to catch this and I can't seem to get the watch handler to run....
0votes
0answers
202views
Template-Url Directive Unit Testing without Karma
SOLUTION = Solution Plunker I have tried manually passing the template in testing - is it even good way of doing it ? How to make it passes !!!!!!! How to write unit test for Simple directive with ...