fix(generate): make generated component.spec consistent with AppCompo…#2488
fix(generate): make generated component.spec consistent with AppCompo…#2488lacolaco wants to merge 1 commit intoangular:masterfrom
Conversation
9fc8e90 to
c604fe2
Compare
|
I actually prefer this change. Yes, we did simplify, but as @filipesilva pointed out, that was before This PR adds the suggested test strategy without adding complication or bloat of spec files. It has my approval, but I won't merge until others have a chance to weigh in. I would like to have teh opinion of @wardbell on this one, because he is passionate about testing and was involved in the spec simplification change. |
|
I think there is more of a case for generating a true Component spec, now that the TestBed is so sweet. However, this isn't that spec. Rather than go on at length about what's amiss with this one, @Brocco, should we use it for inspiration and work up something on the side? You know how to reach me. |
|
Closing... handled via PR #2674 |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
…nent spec
ng newgenerates a little rich spec file forAppComponentBut a spec via
ng generate componentis not so. Imperative component instantiation is not a good pattern, I think.At least, I think it should generate a spec using
TestBed.