mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-04 09:10:09 +00:00
throwError should be able to take string or Error (#41666)
https://jasmine.github.io/api/3.5/SpyStrategy.html https://yaqs.corp.google.com/eng/q/5985225959145472?search_query_record_key=ahFzfmdvb2dsZS5jb206eWFxc3IeCxIRU2VhcmNoUXVlcnlSZWNvcmQYgIDI2cbi1goMogEDZW5n
This commit is contained in:
2
types/jasmine/index.d.ts
vendored
2
types/jasmine/index.d.ts
vendored
@@ -875,7 +875,7 @@ declare namespace jasmine {
|
||||
/** By chaining the spy with and.callFake, all calls to the spy will delegate to the supplied function. */
|
||||
callFake(fn: Function): Spy;
|
||||
/** By chaining the spy with and.throwError, all calls to the spy will throw the specified value. */
|
||||
throwError(msg: string): Spy;
|
||||
throwError(msg: string|Error): Spy;
|
||||
/** When a calling strategy is used for a spy, the original stubbing behavior can be returned at any time with and.stub. */
|
||||
stub(): Spy;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user