@@ -215,7 +215,7 @@ describe('PHPCS', function() {
215
215
216
216
plugin . on ( 'data' , function ( file ) {
217
217
var output = file . phpcsReport . output . trim ( ) ;
218
- expect ( output ) . to . be . equal ( '' ) ;
218
+ expect ( output ) . to . be . equal ( '- ' ) ;
219
219
done ( ) ;
220
220
} ) ;
221
221
@@ -230,7 +230,7 @@ describe('PHPCS', function() {
230
230
231
231
plugin . on ( 'data' , function ( file ) {
232
232
var output = file . phpcsReport . output . trim ( ) ;
233
- expect ( output ) . to . be . equal ( '--severity=0' ) ;
233
+ expect ( output ) . to . be . equal ( '--severity=0 - ' ) ;
234
234
done ( ) ;
235
235
} ) ;
236
236
@@ -245,7 +245,7 @@ describe('PHPCS', function() {
245
245
246
246
plugin . on ( 'data' , function ( file ) {
247
247
var output = file . phpcsReport . output . trim ( ) ;
248
- expect ( output ) . to . be . equal ( '--warning-severity=1' ) ;
248
+ expect ( output ) . to . be . equal ( '--warning-severity=1 - ' ) ;
249
249
done ( ) ;
250
250
} ) ;
251
251
@@ -260,7 +260,7 @@ describe('PHPCS', function() {
260
260
261
261
plugin . on ( 'data' , function ( file ) {
262
262
var output = file . phpcsReport . output . trim ( ) ;
263
- expect ( output ) . to . be . equal ( '--error-severity=2' ) ;
263
+ expect ( output ) . to . be . equal ( '--error-severity=2 - ' ) ;
264
264
done ( ) ;
265
265
} ) ;
266
266
@@ -275,7 +275,7 @@ describe('PHPCS', function() {
275
275
276
276
plugin . on ( 'data' , function ( file ) {
277
277
var output = file . phpcsReport . output . trim ( ) ;
278
- expect ( output ) . to . be . equal ( '--standard=PSR2' ) ;
278
+ expect ( output ) . to . be . equal ( '--standard=PSR2 - ' ) ;
279
279
done ( ) ;
280
280
} ) ;
281
281
@@ -290,7 +290,7 @@ describe('PHPCS', function() {
290
290
291
291
plugin . on ( 'data' , function ( file ) {
292
292
var output = file . phpcsReport . output . trim ( ) ;
293
- expect ( output ) . to . be . equal ( '--encoding=utf8' ) ;
293
+ expect ( output ) . to . be . equal ( '--encoding=utf8 - ' ) ;
294
294
done ( ) ;
295
295
} ) ;
296
296
@@ -305,7 +305,7 @@ describe('PHPCS', function() {
305
305
306
306
plugin . on ( 'data' , function ( file ) {
307
307
var output = file . phpcsReport . output . trim ( ) ;
308
- expect ( output ) . to . be . equal ( '-s' ) ;
308
+ expect ( output ) . to . be . equal ( '-s - ' ) ;
309
309
done ( ) ;
310
310
} ) ;
311
311
@@ -320,7 +320,7 @@ describe('PHPCS', function() {
320
320
321
321
plugin . on ( 'data' , function ( file ) {
322
322
var output = file . phpcsReport . output . trim ( ) ;
323
- expect ( output ) . to . be . equal ( '' ) ;
323
+ expect ( output ) . to . be . equal ( '- ' ) ;
324
324
done ( ) ;
325
325
} ) ;
326
326
@@ -336,10 +336,10 @@ describe('PHPCS', function() {
336
336
plugin . on ( 'data' , function ( file ) {
337
337
var output = file . phpcsReport . output . trim ( ) ;
338
338
// Validate the option.
339
- expect ( output ) . to . match ( / ^ - - s n i f f s = / ) ;
339
+ expect ( output ) . to . match ( / ^ - - s n i f f s = ( [ ^ \s ] + ) - $ / ) ;
340
340
// Validate used sniffs.
341
- var usedSniffs = output . split ( '=' ) [ 1 ] . split ( ',' ) ;
342
- expect ( usedSniffs ) . to . have . members ( [ 'foo' , 'bar' , 'baz' ] ) ;
341
+ var usedSniffs = / ^ - - s n i f f s = ( [ ^ \s ] + ) - $ / . exec ( output ) ;
342
+ expect ( usedSniffs [ 1 ] . split ( ',' ) ) . to . have . members ( [ 'foo' , 'bar' , 'baz' ] ) ;
343
343
344
344
done ( ) ;
345
345
} ) ;
@@ -355,7 +355,7 @@ describe('PHPCS', function() {
355
355
356
356
plugin . on ( 'data' , function ( file ) {
357
357
var output = file . phpcsReport . output . trim ( ) ;
358
- expect ( output ) . to . be . equal ( '' ) ;
358
+ expect ( output ) . to . be . equal ( '- ' ) ;
359
359
done ( ) ;
360
360
} ) ;
361
361
@@ -370,7 +370,7 @@ describe('PHPCS', function() {
370
370
371
371
plugin . on ( 'data' , function ( file ) {
372
372
var output = file . phpcsReport . output . trim ( ) ;
373
- expect ( output ) . to . be . equal ( '' ) ;
373
+ expect ( output ) . to . be . equal ( '- ' ) ;
374
374
done ( ) ;
375
375
} ) ;
376
376
@@ -385,7 +385,7 @@ describe('PHPCS', function() {
385
385
386
386
plugin . on ( 'data' , function ( file ) {
387
387
var output = file . phpcsReport . output . trim ( ) ;
388
- var excludeArgs = / ^ - - e x c l u d e = ( [ ^ \s ] + ) $ / . exec ( output ) ;
388
+ var excludeArgs = / ^ - - e x c l u d e = ( [ ^ \s ] + ) - $ / . exec ( output ) ;
389
389
expect ( excludeArgs ) . to . be . not . null ;
390
390
expect ( excludeArgs [ 1 ] . split ( ',' ) ) . to . have . members ( [ 'foo' , 'bar' , 'baz' ] ) ;
391
391
@@ -403,7 +403,7 @@ describe('PHPCS', function() {
403
403
404
404
plugin . on ( 'data' , function ( file ) {
405
405
var output = file . phpcsReport . output . trim ( ) ;
406
- expect ( output ) . to . be . equal ( '' ) ;
406
+ expect ( output ) . to . be . equal ( '- ' ) ;
407
407
done ( ) ;
408
408
} ) ;
409
409
@@ -418,7 +418,7 @@ describe('PHPCS', function() {
418
418
419
419
plugin . on ( 'data' , function ( file ) {
420
420
var output = file . phpcsReport . output . trim ( ) ;
421
- expect ( output ) . to . be . equal ( '' ) ;
421
+ expect ( output ) . to . be . equal ( '- ' ) ;
422
422
done ( ) ;
423
423
} ) ;
424
424
@@ -433,7 +433,7 @@ describe('PHPCS', function() {
433
433
434
434
plugin . on ( 'data' , function ( file ) {
435
435
var output = file . phpcsReport . output . trim ( ) ;
436
- expect ( output ) . to . be . equal ( '--colors' ) ;
436
+ expect ( output ) . to . be . equal ( '--colors - ' ) ;
437
437
done ( ) ;
438
438
} ) ;
439
439
@@ -448,7 +448,7 @@ describe('PHPCS', function() {
448
448
449
449
plugin . on ( 'data' , function ( file ) {
450
450
var output = file . phpcsReport . output . trim ( ) ;
451
- expect ( output ) . to . be . equal ( '' ) ;
451
+ expect ( output ) . to . be . equal ( '- ' ) ;
452
452
done ( ) ;
453
453
} ) ;
454
454
0 commit comments