I want make a test code using jasmine, the code like here:
toggle(id) {
this.selected = id;
this.show2 = !this.show2;
}
when I try make a test but just toggle has been test and the "this" function not tested, how to test the function in toggle(id)? thanks
Aucun commentaire:
Enregistrer un commentaire