A

Admin • 832.27K Points
Coach

Q. Which method is used to simulate user input in unit tests?

  • (A) simulateInput()
  • (B) triggerEventHandler()
  • (C) emitInput()
  • (D) dispatchInput()
  • Correct Answer - Option(B)
  • Views: 17
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin

`triggerEventHandler()` is used to simulate DOM events in test scenarios.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.