@@ -14,8 +14,8 @@ describe("single file", () => {
1414 const output = formatter ( fixtureSingleError ) ;
1515 expect ( output ) . toBe ( `\
1616 ✗ ${ error ( "index1.js" ) }
17- ⚡ ${ warning ( "#1|1" ) } : Unexpected console statement.
18- ✗ ${ error ( "#2|2" ) } : Unexpected console statement.
17+ ⚡ ${ warning ( "#1|1" ) } : Unexpected console statement. [no-console]
18+ ✗ ${ error ( "#2|2" ) } : Unexpected console statement. [no-console]
1919
2020✗ ${ error ( "Error!" ) } » 1 error and 1 warning in 1 file` ) ;
2121 } ) ;
@@ -24,7 +24,7 @@ describe("single file", () => {
2424 const output = formatter ( fixtureSingleWarning ) ;
2525 expect ( output ) . toBe ( `\
2626 ⚡ ${ warning ( "index1.js" ) }
27- ⚡ ${ warning ( "#1|1" ) } : Unexpected console statement.
27+ ⚡ ${ warning ( "#1|1" ) } : Unexpected console statement. [no-console]
2828
2929⚡ ${ warning ( "Warning!" ) } » 0 errors and 1 warning in 1 file` ) ;
3030 } ) ;
@@ -43,11 +43,11 @@ describe("multiple files", () => {
4343 const output = formatter ( fixtureMultipleErrors ) ;
4444 expect ( output ) . toBe ( `\
4545 ✗ ${ error ( "index1.js" ) }
46- ⚡ ${ warning ( "#1|1" ) } : Unexpected console statement.
47- ✗ ${ error ( "#2|2" ) } : Unexpected console statement.
46+ ⚡ ${ warning ( "#1|1" ) } : Unexpected console statement. [no-console]
47+ ✗ ${ error ( "#2|2" ) } : Unexpected console statement. [no-console]
4848 ✗ ${ error ( "index2.js" ) }
49- ⚡ ${ warning ( "#1|1" ) } : Unexpected console statement.
50- ✗ ${ error ( "#2|2" ) } : Unexpected console statement.
49+ ⚡ ${ warning ( "#1|1" ) } : Unexpected console statement. [no-console]
50+ ✗ ${ error ( "#2|2" ) } : Unexpected console statement. [no-console]
5151
5252✗ ${ error ( "Error!" ) } » 2 errors and 2 warnings in 2 files` ) ;
5353 } ) ;
@@ -56,11 +56,11 @@ describe("multiple files", () => {
5656 const output = formatter ( fixtureMultipleWarnings ) ;
5757 expect ( output ) . toBe ( `\
5858 ⚡ ${ warning ( "index1.js" ) }
59- ⚡ ${ warning ( "#1|1" ) } : Unexpected console statement.
60- ⚡ ${ warning ( "#2|2" ) } : Unexpected console statement.
59+ ⚡ ${ warning ( "#1|1" ) } : Unexpected console statement. [no-console]
60+ ⚡ ${ warning ( "#2|2" ) } : Unexpected console statement. [no-console]
6161 ⚡ ${ warning ( "index2.js" ) }
62- ⚡ ${ warning ( "#1|1" ) } : Unexpected console statement.
63- ⚡ ${ warning ( "#2|2" ) } : Unexpected console statement.
62+ ⚡ ${ warning ( "#1|1" ) } : Unexpected console statement. [no-console]
63+ ⚡ ${ warning ( "#2|2" ) } : Unexpected console statement. [no-console]
6464
6565⚡ ${ warning ( "Warning!" ) } » 0 errors and 4 warnings in 2 files` ) ;
6666 } ) ;
@@ -78,14 +78,14 @@ describe("multiple files", () => {
7878 const output = formatter ( fixtureMixed ) ;
7979 expect ( output ) . toBe ( `\
8080 ⚡ ${ warning ( "index1.js" ) }
81- ⚡ ${ warning ( "#1|1" ) } : Unexpected console statement.
82- ⚡ ${ warning ( "#2|2" ) } : Unexpected console statement.
81+ ⚡ ${ warning ( "#1|1" ) } : Unexpected console statement. [no-console]
82+ ⚡ ${ warning ( "#2|2" ) } : Unexpected console statement. [no-console]
8383 ✗ ${ error ( "index2.js" ) }
84- ✗ ${ error ( "#1|1" ) } : Unexpected console statement.
85- ✗ ${ error ( "#2|2" ) } : Unexpected console statement.
84+ ✗ ${ error ( "#1|1" ) } : Unexpected console statement. [no-console]
85+ ✗ ${ error ( "#2|2" ) } : Unexpected console statement. [no-console]
8686 ✗ ${ error ( "index3.js" ) }
87- ⚡ ${ warning ( "#1|1" ) } : Unexpected console statement.
88- ✗ ${ error ( "#2|2" ) } : Unexpected console statement.
87+ ⚡ ${ warning ( "#1|1" ) } : Unexpected console statement. [no-console]
88+ ✗ ${ error ( "#2|2" ) } : Unexpected console statement. [no-console]
8989 ✓ ${ success ( "index4.js" ) }
9090
9191✗ ${ error ( "Error!" ) } » 3 errors and 3 warnings in 4 files` ) ;
0 commit comments