From 7e0bbbe82eb4a1d0b0c603ed0c78bd6e685dee20 Mon Sep 17 00:00:00 2001 From: Brett Zamir Date: Sun, 7 Feb 2021 18:12:57 +0800 Subject: [PATCH] fix: update `comment-parser`; fixes #686 --- package.json | 2 +- test/rules/assertions/requireParamDescription.js | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index e5c82c430..977efccf4 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "url": "http://gajus.com" }, "dependencies": { - "comment-parser": "1.1.1", + "comment-parser": "1.1.2", "debug": "^4.3.1", "jsdoctypeparser": "^9.0.0", "lodash": "^4.17.20", diff --git a/test/rules/assertions/requireParamDescription.js b/test/rules/assertions/requireParamDescription.js index ff25f1f01..8203aeb08 100644 --- a/test/rules/assertions/requireParamDescription.js +++ b/test/rules/assertions/requireParamDescription.js @@ -168,5 +168,19 @@ export default { */ `, }, + { + code: ` + /** + * Checks if the XML document sort of equals another XML document. + * @param {Object} obj The other object. + * @param {{includeWhiteSpace: (boolean|undefined), + * ignoreElementOrder: (boolean|undefined)}} [options] The options. + * @return {expect.Assertion} The assertion. + */ + expect.Assertion.prototype.xmleql = function (obj, options) { + } + `, + ignoreReadme: true, + }, ], };