579265 (1) [Avatar] Offline
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 (37) [Avatar] Offline
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.