ใน Jest เป็นไปได้ไหมที่จะยืนยันว่า super.some_function ถูกเรียก?

เป็นไปได้ไหมที่จะเขียน jest unit test เพื่อทดสอบว่ามีการเรียกใช้ฟังก์ชัน super หรือไม่ เช่น

ในชั้นเรียนจริง:

class Child extends Parent {
  funk() {
     do_something_specific();
     super.funk();
  }
}

หรือมีคลาสลูกเก็บการอ้างอิงถึง super หรือไม่?


person sub_o    schedule 08.10.2018    source แหล่งที่มา
comment
สร้างนิพจน์ฟังก์ชันและส่งกลับค่าจริงหากเรียกใช้ฟังก์ชัน   -  person Muhammad Ali    schedule 08.10.2018