The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

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 (42) [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.