As it stands (alpha-36) one cannot write unit tests of the actual template when the template is supplied via templateUrl.
I can't even fake it if component A's template (even a template override) depends on component B which gets its template via templateUrl. I have been unsuccessful using overrideDirective to mock the dependent component B ... not that I should have to bother.
Could we use something like the Ng1 template-cache?
As it stands (alpha-36) one cannot write unit tests of the actual template when the template is supplied via
templateUrl.I can't even fake it if component A's template (even a template override) depends on component B which gets its template via
templateUrl. I have been unsuccessful usingoverrideDirectiveto mock the dependent component B ... not that I should have to bother.Could we use something like the Ng1 template-cache?