diff --git a/lib/jasmine-core/jasmine.js b/lib/jasmine-core/jasmine.js index 2539bdb8..c35c614b 100644 --- a/lib/jasmine-core/jasmine.js +++ b/lib/jasmine-core/jasmine.js @@ -739,6 +739,12 @@ getJasmineRequireObj().Spec = function(j$) { this.expectationFactory = attrs.expectationFactory; this.asyncExpectationFactory = attrs.asyncExpectationFactory; this.resultCallback = attrs.resultCallback || function() {}; + /** + * The unique ID of this spec. + * @name Spec#id + * @readonly + * @type {string} + */ this.id = attrs.id; /** * The description passed to the {@link it} that created this spec. @@ -9714,6 +9720,12 @@ getJasmineRequireObj().Suite = function(j$) { */ function Suite(attrs) { this.env = attrs.env; + /** + * The unique ID of this suite. + * @name Suite#id + * @readonly + * @type {string} + */ this.id = attrs.id; /** * The parent of this suite, or null if this is the top suite. diff --git a/src/core/Spec.js b/src/core/Spec.js index 22f6f116..5be0040d 100644 --- a/src/core/Spec.js +++ b/src/core/Spec.js @@ -7,6 +7,12 @@ getJasmineRequireObj().Spec = function(j$) { this.expectationFactory = attrs.expectationFactory; this.asyncExpectationFactory = attrs.asyncExpectationFactory; this.resultCallback = attrs.resultCallback || function() {}; + /** + * The unique ID of this spec. + * @name Spec#id + * @readonly + * @type {string} + */ this.id = attrs.id; /** * The description passed to the {@link it} that created this spec. diff --git a/src/core/Suite.js b/src/core/Suite.js index 5043017b..c3e475bd 100644 --- a/src/core/Suite.js +++ b/src/core/Suite.js @@ -5,6 +5,12 @@ getJasmineRequireObj().Suite = function(j$) { */ function Suite(attrs) { this.env = attrs.env; + /** + * The unique ID of this suite. + * @name Suite#id + * @readonly + * @type {string} + */ this.id = attrs.id; /** * The parent of this suite, or null if this is the top suite.