I am trying to write test case for below method but i don't know how to write the test case to cover the code:
getSectionName(sectionId: string) {
if (sectionId === sectionIds.Homepage) {
return Section.Homepage;
} else Iif (sectionId === sectionIds.ProductList) {
return Section.aboutUs;
} else {
return Section.Homepage
}
}
How to achieve the test case for this method?