Skip to content

Commit

Permalink
tweak test
Browse files Browse the repository at this point in the history
  • Loading branch information
bmish committed Aug 19, 2022
1 parent 4ccb5cc commit 6b778c3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/index.js
Expand Up @@ -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');

Expand Down

0 comments on commit 6b778c3

Please sign in to comment.