We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bcc56be commit c122735Copy full SHA for c122735
tests/index.js
@@ -0,0 +1,30 @@
1
+/* eslint-env mocha */
2
+'use strict';
3
+
4
+var plugin = require('..');
5
6
+var assert = require('assert');
7
+var fs = require('fs');
8
+var path = require('path');
9
10
+var rules = fs.readdirSync(path.resolve(__dirname, '../lib/rules/'))
11
+ .map(function(f) {
12
+ return path.basename(f, '.js');
13
+ });
14
15
+describe('all rule files should be exported by the plugin', function() {
16
+ rules.forEach(function(ruleName) {
17
+ it('should export ' + ruleName, function() {
18
+ assert.equal(
19
+ plugin.rules[ruleName],
20
+ require(path.join('../lib/rules', ruleName))
21
+ );
22
23
+ it('should configure ' + ruleName + ' off by default', function() {
24
25
+ plugin.rulesConfig[ruleName],
26
+ 0
27
28
29
30
+});
0 commit comments