11describe ( 'lib/rules/validate-jsdoc/check-param-names' , function ( ) {
22 var checker = global . checker ( {
3- plugins : [ '.' ]
3+ plugins : [ './lib/index ' ]
44 } ) ;
55
66 describe ( 'not configured' , function ( ) {
@@ -145,7 +145,13 @@ describe('lib/rules/validate-jsdoc/check-param-names', function() {
145145 }
146146 } ,
147147 errors : [
148- { message : 'parameters xxx and yyy are out of order' , column : 10 , line : 2 , rule : "jsDoc" }
148+ {
149+ message : 'parameters xxx and yyy are out of order' ,
150+ column : 10 ,
151+ line : 2 ,
152+ rule : "jsDoc" ,
153+ filename : "input"
154+ }
149155 ]
150156 } , {
151157 it : 'should report out of order many times' ,
@@ -161,8 +167,20 @@ describe('lib/rules/validate-jsdoc/check-param-names', function() {
161167 } ;
162168 } ,
163169 errors : [
164- { message : 'parameters xxx and zzz are out of order' , column : 14 , line : 3 , rule : "jsDoc" } ,
165- { message : 'parameters yyy and xxx are out of order' , column : 14 , line : 4 , rule : "jsDoc" }
170+ {
171+ message : 'parameters xxx and zzz are out of order' ,
172+ column : 14 ,
173+ line : 3 ,
174+ rule : "jsDoc" ,
175+ filename : "input"
176+ } ,
177+ {
178+ message : 'parameters yyy and xxx are out of order' ,
179+ column : 14 ,
180+ line : 4 ,
181+ rule : "jsDoc" ,
182+ filename : "input"
183+ }
166184 ]
167185 } , {
168186 it : 'should report out of order and expected' ,
@@ -177,8 +195,8 @@ describe('lib/rules/validate-jsdoc/check-param-names', function() {
177195 } ;
178196 } ,
179197 errors : [
180- { message : 'parameter xxx is out of order' , column : 14 , line : 3 , rule : "jsDoc" } ,
181- { message : 'expected xxx but got yyy' , column : 14 , line : 4 , rule : "jsDoc" }
198+ { message : 'parameter xxx is out of order' , column : 14 , line : 3 , rule : "jsDoc" , filename : "input" } ,
199+ { message : 'expected xxx but got yyy' , column : 14 , line : 4 , rule : "jsDoc" , filename : "input" }
182200 ]
183201 } , {
184202 it : 'should report out of order and expected v2' ,
@@ -193,8 +211,8 @@ describe('lib/rules/validate-jsdoc/check-param-names', function() {
193211 } ;
194212 } ,
195213 errors : [
196- { message : 'expected yyy but got xxx' , column : 14 , line : 3 , rule : "jsDoc" } ,
197- { message : 'parameter yyy is out of order' , column : 14 , line : 4 , rule : "jsDoc" }
214+ { message : 'expected yyy but got xxx' , column : 14 , line : 3 , rule : "jsDoc" , filename : "input" } ,
215+ { message : 'parameter yyy is out of order' , column : 14 , line : 4 , rule : "jsDoc" , filename : "input" }
198216 ]
199217 } , {
200218 it : 'should not report out of order but expected' ,
@@ -209,7 +227,7 @@ describe('lib/rules/validate-jsdoc/check-param-names', function() {
209227 } ;
210228 } ,
211229 errors : [
212- { message : 'expected zzz but got xxx' , column : 14 , line : 3 , rule : "jsDoc" }
230+ { message : 'expected zzz but got xxx' , column : 14 , line : 3 , rule : "jsDoc" , filename : "input" }
213231 ]
214232
215233 } , {
0 commit comments