I am quite new to JEST and I am stuck with code coverage being 100 percent.
This is the if statement for which I am unable to get 100% coverage.
service.ts
public indexEqualtoSize(endId: number,filesize: number)
{
if (endInd==filesize)
{
return true;
}
return false;
}
this is being called in the service.ts at this line-
if (this.indexEqualtoSize(endInd,index.file.size))
{
startInd= endInd;
}
Can anyone please help me how can I write Test Case for this in JEST?
Aucun commentaire:
Enregistrer un commentaire