From 525c2e4cf7834a43f7d73e7fcfe747e217c6b9d1 Mon Sep 17 00:00:00 2001 From: Feng Yu Date: Thu, 19 May 2022 11:09:12 +0000 Subject: [PATCH] docs: fix return jsdoc type of `titlePath` --- lib/runnable.js | 2 +- lib/suite.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/runnable.js b/lib/runnable.js index fef4941024..5e0970b159 100644 --- a/lib/runnable.js +++ b/lib/runnable.js @@ -211,7 +211,7 @@ Runnable.prototype.fullTitle = function () { * * @memberof Mocha.Runnable * @public - * @return {string} + * @return {string[]} */ Runnable.prototype.titlePath = function () { return this.parent.titlePath().concat([this.title]); diff --git a/lib/suite.js b/lib/suite.js index 43cb7556e1..64d7183fdf 100644 --- a/lib/suite.js +++ b/lib/suite.js @@ -387,7 +387,7 @@ Suite.prototype.fullTitle = function () { * * @memberof Suite * @public - * @return {string} + * @return {string[]} */ Suite.prototype.titlePath = function () { var result = [];