@@ -4,6 +4,7 @@ getJasmineRequireObj().toBeRejected = function(j$) {
|
||||
* @function
|
||||
* @async
|
||||
* @name async-matchers#toBeRejected
|
||||
* @since 3.1.0
|
||||
* @example
|
||||
* await expectAsync(aPromise).toBeRejected();
|
||||
* @example
|
||||
|
||||
@@ -4,6 +4,7 @@ getJasmineRequireObj().toBeRejectedWith = function(j$) {
|
||||
* @function
|
||||
* @async
|
||||
* @name async-matchers#toBeRejectedWith
|
||||
* @since 3.3.0
|
||||
* @param {Object} expected - Value that the promise is expected to be rejected with
|
||||
* @example
|
||||
* await expectAsync(aPromise).toBeRejectedWith({prop: 'value'});
|
||||
|
||||
@@ -4,6 +4,7 @@ getJasmineRequireObj().toBeRejectedWithError = function(j$) {
|
||||
* @function
|
||||
* @async
|
||||
* @name async-matchers#toBeRejectedWithError
|
||||
* @since 3.5.0
|
||||
* @param {Error} [expected] - `Error` constructor the object that was thrown needs to be an instance of. If not provided, `Error` will be used.
|
||||
* @param {RegExp|String} [message] - The message that should be set on the thrown `Error`
|
||||
* @example
|
||||
|
||||
@@ -4,6 +4,7 @@ getJasmineRequireObj().toBeResolved = function(j$) {
|
||||
* @function
|
||||
* @async
|
||||
* @name async-matchers#toBeResolved
|
||||
* @since 3.1.0
|
||||
* @example
|
||||
* await expectAsync(aPromise).toBeResolved();
|
||||
* @example
|
||||
|
||||
@@ -4,6 +4,7 @@ getJasmineRequireObj().toBeResolvedTo = function(j$) {
|
||||
* @function
|
||||
* @async
|
||||
* @name async-matchers#toBeResolvedTo
|
||||
* @since 3.1.0
|
||||
* @param {Object} expected - Value that the promise is expected to resolve to
|
||||
* @example
|
||||
* await expectAsync(aPromise).toBeResolvedTo({prop: 'value'});
|
||||
|
||||
Reference in New Issue
Block a user