Unit testing html label

240 views Asked by At

I have a label that is populated through angular data binding:

<label class="my-heading">{{myBinding}}</label>

returns:

<label class="my-heading">Some Value</label>

How can i write a unit test to confirm the value within the label i.e Some Value if i mock the binding?

0

There are 0 answers