Q. What does Angular use to control asynchronous operations in tests?

  • (A) fakeAsync and tick
  • (B) setTimeout
  • (C) Promise.resolve
  • (D) subscribe
πŸ’¬ Discuss
βœ… Correct Answer: (A) fakeAsync and tick
Explanation: fakeAsync and tick help simulate the passage of time in async operations.
Explanation by: Mr. Dubey
fakeAsync and tick help simulate the passage of time in async operations.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
70
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
84%
Success Rate