Function expectThrowsAsync
- expectThrowsAsync(actual, expected?, message?): Promise<void>
Parameters
- actual: Promise<any>
Optional
expected: string | RegExpOptional
message: string
Returns Promise<void>
- expectThrowsAsync(actual, constructor, expected?, message?): Promise<void>
Parameters
- actual: Promise<any>
- constructor: Function | Error
Optional
expected: string | RegExpOptional
message: string
Returns Promise<void>