This is a migrated thread and some comments may be shown as answers.

jest unit test error on Binding to event property 'onLabel'

0 Answers 618 Views
Switch
This is a migrated thread and some comments may be shown as answers.
wil
Top achievements
Rank 1
wil asked on 11 Nov 2020, 08:52 PM

I am creating unit tests using jest and I can't run the test because of Angular not like "on" inside the [onLabel] attribute in kendo-switch.  Is there a work around for this?  

 

Template parse errors:
    Binding to event property 'onLabel' is disallowed for security reasons, please use (Label)=...
    If 'onLabel' is a directive input, make sure the directive is imported by the current module. ("
              (valueChange)="switchPageSize($event)"
              [offLabel]="'All'"
              [ERROR ->][onLabel]="'All'">
            </kendo-switch>
          </ng-template>
    "): ng:///DynamicTestModule/HistoryComponent.html@199:10

No answers yet. Maybe you can help?

Tags
Switch
Asked by
wil
Top achievements
Rank 1
Share this question
or