How to unit test the list items?

Just suggest the use cases to test in this scenario and the logic that will be writen in it block.

.html

<ion-list>
    <ion-item *ngFor="let data of datas" (click)="onClick2()">
      {{data}}
    </ion-item>

.ts

export class Page1 {
   public datas = ['Apple', 'Bananas', 'Oranges'];
  constructor(private service: Service, private navCtrl: NavController) {  }
}

Thank you

Did you try Jasmine & Karma?

@marcosmachado I am doing testing on Karma/Jasmine, you can tell me the logic that I have to write in the it block, as I have made the Testing Environment in which my component’s instance is created.