From d7b1456584efc7b78024a2f43736218e83b6127f Mon Sep 17 00:00:00 2001 From: Steve Gravrock Date: Wed, 26 Nov 2025 15:33:04 -0800 Subject: [PATCH] Document the set of possible spec statuses --- lib/jasmine-core/jasmine.js | 2 +- src/core/Spec.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/jasmine-core/jasmine.js b/lib/jasmine-core/jasmine.js index 9193a12c..79fffdca 100644 --- a/lib/jasmine-core/jasmine.js +++ b/lib/jasmine-core/jasmine.js @@ -978,7 +978,7 @@ getJasmineRequireObj().Spec = function(j$) { * @property {ExpectationResult[]} passedExpectations - The list of expectations that passed during execution of this spec. * @property {ExpectationResult[]} deprecationWarnings - The list of deprecation warnings that occurred during execution this spec. * @property {String} pendingReason - If the spec is {@link pending}, this will be the reason. - * @property {String} status - Once the spec has completed, this string represents the pass/fail status of this spec. + * @property {String} status - The result of this spec. May be 'passed', 'failed', 'pending', or 'excluded'. * @property {number} duration - The time in ms used by the spec execution, including any before/afterEach. * @property {Object} properties - User-supplied properties, if any, that were set using {@link Env#setSpecProperty} * @property {DebugLogEntry[]|null} debugLogs - Messages, if any, that were logged using {@link jasmine.debugLog} during a failing spec. diff --git a/src/core/Spec.js b/src/core/Spec.js index 089995ce..254b50fc 100644 --- a/src/core/Spec.js +++ b/src/core/Spec.js @@ -165,7 +165,7 @@ getJasmineRequireObj().Spec = function(j$) { * @property {ExpectationResult[]} passedExpectations - The list of expectations that passed during execution of this spec. * @property {ExpectationResult[]} deprecationWarnings - The list of deprecation warnings that occurred during execution this spec. * @property {String} pendingReason - If the spec is {@link pending}, this will be the reason. - * @property {String} status - Once the spec has completed, this string represents the pass/fail status of this spec. + * @property {String} status - The result of this spec. May be 'passed', 'failed', 'pending', or 'excluded'. * @property {number} duration - The time in ms used by the spec execution, including any before/afterEach. * @property {Object} properties - User-supplied properties, if any, that were set using {@link Env#setSpecProperty} * @property {DebugLogEntry[]|null} debugLogs - Messages, if any, that were logged using {@link jasmine.debugLog} during a failing spec.