class ServiceClass {
async method1(){
}
async function method2(){ }
module.exports = ServiceClass;
i need to add mock to the method2 function. but i am getting "TypeError: Attempted to wrap undefined property method2 as function" error.
Aucun commentaire:
Enregistrer un commentaire