11var Checker = require ( 'jscs/lib/checker' ) ;
22var assert = require ( 'assert' ) ;
33
4- describe ( 'rules/validate-jsdoc @param' , function ( ) {
4+ describe ( 'rules/validate-jsdoc @param' , function ( ) {
55
66 var checker ;
7- beforeEach ( function ( ) {
7+ beforeEach ( function ( ) {
88 checker = new Checker ( ) ;
99 checker . registerDefaultRules ( ) ;
1010 checker . configure ( { additionalRules : [ 'lib/rules/validate-jsdoc.js' ] } ) ;
1111 } ) ;
1212
13- describe ( 'redudant-params' , function ( ) {
13+ describe ( 'redudant-params' , function ( ) {
1414
15- it ( 'should report redundant jsdoc-param for function' , function ( ) {
15+ it ( 'should report redundant jsdoc-param for function' , function ( ) {
1616 checker . configure ( { jsDoc : { checkRedundantParams : true } } ) ;
1717 assert (
1818 checker . checkString (
@@ -26,7 +26,7 @@ describe('rules/validate-jsdoc @param', function () {
2626 ) . getErrorCount ( ) === 1
2727 ) ;
2828 } ) ;
29- it ( 'should report redundant jsdoc-param for method' , function ( ) {
29+ it ( 'should report redundant jsdoc-param for method' , function ( ) {
3030 checker . configure ( { jsDoc : { checkRedundantParams : true } } ) ;
3131 assert (
3232 checker . checkString (
@@ -41,7 +41,7 @@ describe('rules/validate-jsdoc @param', function () {
4141 ) . getErrorCount ( ) === 1
4242 ) ;
4343 } ) ;
44- it ( 'should not report redundant jsdoc-param for function' , function ( ) {
44+ it ( 'should not report redundant jsdoc-param for function' , function ( ) {
4545 checker . configure ( { jsDoc : { checkRedundantParams : true } } ) ;
4646 assert (
4747 checker . checkString (
@@ -55,7 +55,7 @@ describe('rules/validate-jsdoc @param', function () {
5555 ) . getErrorCount ( ) === 0
5656 ) ;
5757 } ) ;
58- it ( 'should not report valid jsdoc for method' , function ( ) {
58+ it ( 'should not report valid jsdoc for method' , function ( ) {
5959 checker . configure ( { jsDoc : { checkRedundantParams : true } } ) ;
6060 assert (
6161 checker . checkString (
@@ -69,7 +69,7 @@ describe('rules/validate-jsdoc @param', function () {
6969 ) . isEmpty ( )
7070 ) ;
7171 } ) ;
72- it ( 'should not report valid jsdoc for function' , function ( ) {
72+ it ( 'should not report valid jsdoc for function' , function ( ) {
7373 checker . configure ( { jsDoc : { checkRedundantParams : true } } ) ;
7474 assert (
7575 checker . checkString (
@@ -87,9 +87,9 @@ describe('rules/validate-jsdoc @param', function () {
8787
8888 } ) ;
8989
90- describe ( 'require-param-types' , function ( ) {
90+ describe ( 'require-param-types' , function ( ) {
9191
92- it ( 'should report missing jsdoc-param type for function' , function ( ) {
92+ it ( 'should report missing jsdoc-param type for function' , function ( ) {
9393 checker . configure ( { jsDoc : { requireParamTypes : true } } ) ;
9494 assert (
9595 checker . checkString (
@@ -103,7 +103,7 @@ describe('rules/validate-jsdoc @param', function () {
103103 ) . getErrorCount ( ) === 1
104104 ) ;
105105 } ) ;
106- it ( 'should report missing jsdoc-param type for method' , function ( ) {
106+ it ( 'should report missing jsdoc-param type for method' , function ( ) {
107107 checker . configure ( { jsDoc : { requireParamTypes : true } } ) ;
108108 assert (
109109 checker . checkString (
@@ -118,7 +118,7 @@ describe('rules/validate-jsdoc @param', function () {
118118 ) . getErrorCount ( ) === 1
119119 ) ;
120120 } ) ;
121- it ( 'should not report valid jsdoc for method' , function ( ) {
121+ it ( 'should not report valid jsdoc for method' , function ( ) {
122122 checker . configure ( { jsDoc : { requireParamTypes : true } } ) ;
123123 assert (
124124 checker . checkString (
@@ -132,7 +132,7 @@ describe('rules/validate-jsdoc @param', function () {
132132 ) . isEmpty ( )
133133 ) ;
134134 } ) ;
135- it ( 'should not report valid jsdoc for function' , function ( ) {
135+ it ( 'should not report valid jsdoc for function' , function ( ) {
136136 checker . configure ( { jsDoc : { requireParamTypes : true } } ) ;
137137 assert (
138138 checker . checkString (
@@ -147,7 +147,7 @@ describe('rules/validate-jsdoc @param', function () {
147147 ) . isEmpty ( )
148148 ) ;
149149 } ) ;
150- it ( 'should not report valid jsdoc with object type for method' , function ( ) {
150+ it ( 'should not report valid jsdoc with object type for method' , function ( ) {
151151 checker . configure ( { jsDoc : { requireParamTypes : true } } ) ;
152152 assert (
153153 checker . checkString (
@@ -161,7 +161,7 @@ describe('rules/validate-jsdoc @param', function () {
161161 ) . isEmpty ( )
162162 ) ;
163163 } ) ;
164- it ( 'should not report valid jsdoc with object type for function' , function ( ) {
164+ it ( 'should not report valid jsdoc with object type for function' , function ( ) {
165165 checker . configure ( { jsDoc : { requireParamTypes : true } } ) ;
166166 assert (
167167 checker . checkString (
0 commit comments