Merge branch '3.99' into 4.0

This commit is contained in:
Steve Gravrock
2021-05-18 17:12:29 -07:00
15 changed files with 470 additions and 155 deletions

View File

@@ -43,7 +43,29 @@ getJasmineRequireObj().Expectation = function(j$) {
});
/**
* Asynchronous matchers.
* Asynchronous matchers that operate on an actual value which is a promise,
* and return a promise.
*
* Note: Specs must await the result of each async matcher, return the
* promise returned by the matcher, or return a promise that's derived from
* the one returned by the matcher. Otherwise the matcher will not be
* evaluated before the spec completes.
*
* @example
* // Good
* await expectAsync(aPromise).toBeResolved();
* @example
* // Good
* return expectAsync(aPromise).toBeResolved();
* @example
* // Good
* return expectAsync(aPromise).toBeResolved()
* .then(function() {
* // more spec code
* });
* @example
* // Bad
* expectAsync(aPromise).toBeResolved();
* @namespace async-matchers
*/
function AsyncExpectation(options) {

View File

@@ -44,6 +44,7 @@ getJasmineRequireObj().Spy = function(j$) {
* @property {object} object - `this` context for the invocation.
* @property {number} invocationOrder - Order of the invocation.
* @property {Array} args - The arguments passed for this invocation.
* @property returnValue - The value that was returned from this invocation.
*/
var callData = {
object: context,