Preparing search index...
The search index is not available
Stratix Framework - v0.8.2
Stratix Framework
testing/src
expectToReject
Function expectToReject
expectToReject
(
promise
:
Promise
<
unknown
>
,
expectedError
?:
string
|
RegExp
,
)
:
Promise
<
void
>
Asserts that a promise rejects with a specific error
Parameters
promise
:
Promise
<
unknown
>
Optional
expectedError
:
string
|
RegExp
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Stratix Framework - v0.8.2
Loading...
Asserts that a promise rejects with a specific error