Skip to content

Commit eca4fec

Browse files
docs: fix return jsdoc type of titlePath (#4886)
Co-authored-by: Josh Goldberg ✨ <[email protected]>
1 parent 060f77d commit eca4fec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/runnable.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ Runnable.prototype.fullTitle = function () {
211211
*
212212
* @memberof Mocha.Runnable
213213
* @public
214-
* @return {string}
214+
* @return {string[]}
215215
*/
216216
Runnable.prototype.titlePath = function () {
217217
return this.parent.titlePath().concat([this.title]);

lib/suite.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ Suite.prototype.fullTitle = function () {
387387
*
388388
* @memberof Suite
389389
* @public
390-
* @return {string}
390+
* @return {string[]}
391391
*/
392392
Suite.prototype.titlePath = function () {
393393
var result = [];

0 commit comments

Comments
 (0)