From 6b778c398e390de7f4a57b858c60c2455abdd57a Mon Sep 17 00:00:00 2001 From: Bryan Mishkin <698306+bmish@users.noreply.github.com> Date: Thu, 18 Aug 2022 20:08:48 -0400 Subject: [PATCH] tweak test --- tests/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/index.js b/tests/index.js index 5728fd3c40..75355f1fa1 100644 --- a/tests/index.js +++ b/tests/index.js @@ -28,10 +28,9 @@ describe('rule documentation files have the correct content', () => { hasSuggestions: '💡 This rule provides editor [suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).', }; - ruleFiles.forEach((ruleFile) => { - const ruleName = path.basename(ruleFile, '.js'); + ruleFiles.forEach((ruleName) => { const rule = plugin.rules[ruleName]; - const documentPath = path.join('docs/rules', `${ruleName}.md`); + const documentPath = path.join('docs', 'rules', `${ruleName}.md`); const documentContents = fs.readFileSync(documentPath, 'utf8'); const documentLines = documentContents.split('\n');