From eca4fec9eee1332a0474b80aa1740822438955f3 Mon Sep 17 00:00:00 2001 From: Feng Yu Date: Sat, 2 Dec 2023 13:07:43 -0800 Subject: [PATCH] docs: fix return jsdoc type of `titlePath` (#4886) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Josh Goldberg ✨ --- 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 = [];