Jasmine JavaScript Testing Framework Practice Test
Jasmine JavaScript Testing Framework Jasmine Spies and Mocking 2
What does .and.throwError('msg') do when configured on a Jasmine spy?
Select your answer
A
Makes the spy throw an Error with that message when called
B
Logs the message to the console on each call
C
Catches errors thrown inside the real method
D
Marks the spy as expected to throw
Hint
✨ Remove Ads & Unlock Every Exam
— From $1.49