579265 (1) [Avatar] Offline
#1
Hey! Thanks for the amazing book! Totally worth it!

I'm just missing some guidelines to proper unit test on directives. Would be amazing if you could add more material about this.

Thanks again.
Edd Yerburgh (33) [Avatar] Offline
#2
Glad you're enjoying it!

I haven't included anything in the book, but you can test it in a similar way to mixins. In other words, you create a simple component in the test, register the directive, and use the directive in the template. Then assert that the directive produces the correct result.