Skip to content

Commit

Permalink
chore(require-tothrow-message): fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisblossom committed Jul 17, 2019
1 parent b42638f commit 3732320
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/__tests__/rules.test.js
Expand Up @@ -3,11 +3,16 @@ import { resolve } from 'path';
import { rules } from '../';

const ruleNames = Object.keys(rules);
const numberOfRules = 34;
const numberOfRules = 35;

describe('rules', () => {
it('should have a corresponding doc for each rule', () => {
ruleNames.forEach(rule => {
// require-tothrow-message has been renamed to require-to-throw-message
if (rule === 'require-tothrow-message') {
return;
}

const docPath = resolve(__dirname, '../../docs/rules', `${rule}.md`);

if (!existsSync(docPath)) {
Expand Down

0 comments on commit 3732320

Please sign in to comment.