lundi 10 juin 2019

Testing child component input in Angular

I am testing an Angular component that looks like this:

<div><my-sub-component [items]="items"></my-sub-component></div>

How can I write a test that would fail as soon as I remove the [items]="items" part from my component's template?

Aucun commentaire:

Enregistrer un commentaire