angular-component icon indicating copy to clipboard operation
angular-component copied to clipboard

How to write Unit Tests for components created using angular-component polyfill?

Open asadsahi opened this issue 8 years ago • 1 comments

I am trying to write some unit tests for the components created using this polyfill. Just need some hint to understand how we would be able to achive that?

With angular 1.5 we have $componentController api to instantiate components, What is alternative here?

asadsahi avatar Jan 30 '17 16:01 asadsahi

@asadsahi we pull in v1.5 of ngMock or wherever that $componentControler api exists for the purpose unit testing. Seems to work fine and we haven't noticed in version discrepancy issues.

mikehaas763 avatar Aug 04 '17 12:08 mikehaas763