Testing PrimeNg data table using jasmine

Viewed 192

How do we write a unit test against primeng filter function in angular using jasmine

home.component.html

 <input type="text" pInputText size="50" placeholder="Global Filter" (input)="filterGlobal(dt, $event)" >

home.component.ts

  filterGlobal(dt: any, event){
    dt.filterGlobal(event.target.value, 'contains')
  }

home.component.spec.ts

0 Answers
Related