πŸ“Š Angular
Q. Which method is used to simulate user input in unit tests?
  • (A) simulateInput()
  • (B) triggerEventHandler()
  • (C) emitInput()
  • (D) dispatchInput()
πŸ’¬ Discuss
βœ… Correct Answer: (B) triggerEventHandler()

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

Explanation by: Mr. Dubey
`triggerEventHandler()` is used to simulate DOM events in test scenarios.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
51
Total Visits
πŸ“½οΈ
9 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
91%
Success Rate