@@ -14,8 +14,8 @@ describe("single file", () => {
14
14
const output = formatter ( fixtureSingleError ) ;
15
15
expect ( output ) . toBe ( `\
16
16
✗ ${ 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]
19
19
20
20
✗ ${ error ( "Error!" ) } » 1 error and 1 warning in 1 file` ) ;
21
21
} ) ;
@@ -24,7 +24,7 @@ describe("single file", () => {
24
24
const output = formatter ( fixtureSingleWarning ) ;
25
25
expect ( output ) . toBe ( `\
26
26
⚡ ${ warning ( "index1.js" ) }
27
- ⚡ ${ warning ( "#1|1" ) } : Unexpected console statement.
27
+ ⚡ ${ warning ( "#1|1" ) } : Unexpected console statement. [no-console]
28
28
29
29
⚡ ${ warning ( "Warning!" ) } » 0 errors and 1 warning in 1 file` ) ;
30
30
} ) ;
@@ -43,11 +43,11 @@ describe("multiple files", () => {
43
43
const output = formatter ( fixtureMultipleErrors ) ;
44
44
expect ( output ) . toBe ( `\
45
45
✗ ${ 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]
48
48
✗ ${ 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]
51
51
52
52
✗ ${ error ( "Error!" ) } » 2 errors and 2 warnings in 2 files` ) ;
53
53
} ) ;
@@ -56,11 +56,11 @@ describe("multiple files", () => {
56
56
const output = formatter ( fixtureMultipleWarnings ) ;
57
57
expect ( output ) . toBe ( `\
58
58
⚡ ${ 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]
61
61
⚡ ${ 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]
64
64
65
65
⚡ ${ warning ( "Warning!" ) } » 0 errors and 4 warnings in 2 files` ) ;
66
66
} ) ;
@@ -78,14 +78,14 @@ describe("multiple files", () => {
78
78
const output = formatter ( fixtureMixed ) ;
79
79
expect ( output ) . toBe ( `\
80
80
⚡ ${ 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]
83
83
✗ ${ 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]
86
86
✗ ${ 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]
89
89
✓ ${ success ( "index4.js" ) }
90
90
91
91
✗ ${ error ( "Error!" ) } » 3 errors and 3 warnings in 4 files` ) ;
0 commit comments