the test cases written for the above piece of code should increase the code coverage in sonar
if (this.listOfSortJobs.length == 1) {
sessionStorage.setItem('selectedSortJob', this.listOfSortJobs[0].name);
this.processflows = this.listOfSortJobs[0].ProcessFlows;
sessionStorage.setItem('processflow', JSON.stringify(this.processflows));
this.route.navigate(['/processflow']);
}
the code coverage is not recognising any tests cases written for these
Aucun commentaire:
Enregistrer un commentaire