What does .and.throwError('msg') do when configured on a Jasmine spy?
-
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