@@ -51,6 +51,11 @@ describe('rules/validate-parameter-separator', function() {
51
51
. to . have . one . validation . error . from ( 'validateParameterSeparator' ) ;
52
52
} ) ;
53
53
54
+ it ( 'should validate class methods' , function ( ) {
55
+ expect ( checker . checkString ( 'class a { constructor(a, b) {} }' ) )
56
+ . to . have . one . validation . error . from ( 'validateParameterSeparator' ) ;
57
+ } ) ;
58
+
54
59
it ( 'should report unexpected space for function a(b ,c) {}' , function ( ) {
55
60
expect ( checker . checkString ( 'function a(b ,c) {}' ) )
56
61
. to . have . one . validation . error . from ( 'validateParameterSeparator' ) ;
@@ -102,6 +107,11 @@ describe('rules/validate-parameter-separator', function() {
102
107
. to . have . one . validation . error . from ( 'validateParameterSeparator' ) ;
103
108
} ) ;
104
109
110
+ it ( 'should validate class methods' , function ( ) {
111
+ expect ( checker . checkString ( 'class a { constructor(a , b) {} }' ) )
112
+ . to . have . one . validation . error . from ( 'validateParameterSeparator' ) ;
113
+ } ) ;
114
+
105
115
it ( 'should report missing space for function a(b,c) {}' , function ( ) {
106
116
expect ( checker . checkString ( 'function a(b,c) {}' ) )
107
117
. to . have . one . validation . error . from ( 'validateParameterSeparator' ) ;
@@ -149,6 +159,11 @@ describe('rules/validate-parameter-separator', function() {
149
159
. to . have . one . validation . error . from ( 'validateParameterSeparator' ) ;
150
160
} ) ;
151
161
162
+ it ( 'should validate class methods' , function ( ) {
163
+ expect ( checker . checkString ( 'class a { constructor(a , b) {} }' ) )
164
+ . to . have . one . validation . error . from ( 'validateParameterSeparator' ) ;
165
+ } ) ;
166
+
152
167
it ( 'should report missing space for function a(b,c) {}' , function ( ) {
153
168
expect ( checker . checkString ( 'function a(b,c) {}' ) )
154
169
. to . have . one . validation . error . from ( 'validateParameterSeparator' ) ;
@@ -192,6 +207,11 @@ describe('rules/validate-parameter-separator', function() {
192
207
. to . have . one . validation . error . from ( 'validateParameterSeparator' ) ;
193
208
} ) ;
194
209
210
+ it ( 'should validate class methods' , function ( ) {
211
+ expect ( checker . checkString ( 'class a { constructor(a, b) {} }' ) )
212
+ . to . have . one . validation . error . from ( 'validateParameterSeparator' ) ;
213
+ } ) ;
214
+
195
215
it ( 'should report missing space for function a(b ,c) {}' , function ( ) {
196
216
expect ( checker . checkString ( 'function a(b ,c) {}' ) )
197
217
. to . have . one . validation . error . from ( 'validateParameterSeparator' ) ;
0 commit comments