+ Start a Discussion
m 3m 3 

write a test class below code with using system.assertequals

* Controller class for C_Header component
 */
public without sharing class C_HeaderCntl {
    @AuraEnabled
    public static String getContactTypeDetail(){
        return C_Utilities.getContactTypeDetail();
    }
}
so_mayankso_mayank
@isTest
public class C_HeaderCntlTest {
   
    @isTest
    public static void testGetContactTypeDetail() {
        System.assertEquals('[EXPECTED_VALUE]', C_HeaderCntl.getContactTypeDetail());
    }
}
If this resolves your query, kindly mark it as the best answer.