API docs for Env#topSuite and Suite

This commit is contained in:
Steve Gravrock
2021-04-03 11:09:30 -07:00
parent 2fc5182ddc
commit ce850c472a
3 changed files with 68 additions and 0 deletions

View File

@@ -646,6 +646,13 @@ getJasmineRequireObj().Env = function(j$) {
defaultResourcesForRunnable(topSuite.id);
currentDeclarationSuite = topSuite;
/**
* Provides the root suite, through which all suites and specs can be
* accessed.
* @function
* @name Env#topSuite
* @return {Suite} the root suite
*/
this.topSuite = function() {
return topSuite;
};