@@ -63,7 +63,7 @@ describe("formatter:codeframe", () => {
63
63
it ( "should return nothing" , ( ) => {
64
64
const result = formatter ( code ) ;
65
65
66
- assert . equal ( result , "" ) ;
66
+ assert . strictEqual ( result , "" ) ;
67
67
} ) ;
68
68
} ) ;
69
69
@@ -87,7 +87,7 @@ describe("formatter:codeframe", () => {
87
87
it ( "should return a string in the correct format for warnings" , ( ) => {
88
88
const result = formatter ( code ) ;
89
89
90
- assert . equal ( stripAnsi ( result ) , [
90
+ assert . strictEqual ( stripAnsi ( result ) , [
91
91
`warning: Unexpected foo (foo) at ${ path . join ( "lib" , "foo.js" ) } :1:5:` ,
92
92
"> 1 | var foo = 1;" ,
93
93
" | ^" ,
@@ -104,8 +104,8 @@ describe("formatter:codeframe", () => {
104
104
105
105
formatter ( code ) ;
106
106
107
- assert . equal ( chalkStub . yellow . bold . callCount , 1 ) ;
108
- assert . equal ( chalkStub . red . bold . callCount , 0 ) ;
107
+ assert . strictEqual ( chalkStub . yellow . bold . callCount , 1 ) ;
108
+ assert . strictEqual ( chalkStub . red . bold . callCount , 0 ) ;
109
109
} ) ;
110
110
111
111
describe ( "when the warning is fixable" , ( ) => {
@@ -116,7 +116,7 @@ describe("formatter:codeframe", () => {
116
116
it ( "should return a string in the correct format" , ( ) => {
117
117
const result = formatter ( code ) ;
118
118
119
- assert . equal ( stripAnsi ( result ) , [
119
+ assert . strictEqual ( stripAnsi ( result ) , [
120
120
`warning: Unexpected foo (foo) at ${ path . join ( "lib" , "foo.js" ) } :1:5:` ,
121
121
"> 1 | var foo = 1;" ,
122
122
" | ^" ,
@@ -148,7 +148,7 @@ describe("formatter:codeframe", () => {
148
148
it ( "should return a string in the correct format for errors" , ( ) => {
149
149
const result = formatter ( code ) ;
150
150
151
- assert . equal ( stripAnsi ( result ) , [
151
+ assert . strictEqual ( stripAnsi ( result ) , [
152
152
`error: Unexpected foo (foo) at ${ path . join ( "lib" , "foo.js" ) } :1:5:` ,
153
153
"> 1 | var foo = 1;" ,
154
154
" | ^" ,
@@ -165,8 +165,8 @@ describe("formatter:codeframe", () => {
165
165
166
166
formatter ( code ) ;
167
167
168
- assert . equal ( chalkStub . yellow . bold . callCount , 0 ) ;
169
- assert . equal ( chalkStub . red . bold . callCount , 1 ) ;
168
+ assert . strictEqual ( chalkStub . yellow . bold . callCount , 0 ) ;
169
+ assert . strictEqual ( chalkStub . red . bold . callCount , 1 ) ;
170
170
} ) ;
171
171
} ) ;
172
172
@@ -186,7 +186,7 @@ describe("formatter:codeframe", () => {
186
186
it ( "should return a string in the correct format (retaining the ' .')" , ( ) => {
187
187
const result = formatter ( code ) ;
188
188
189
- assert . equal ( stripAnsi ( result ) , "error: Unexpected . (foo) at foo.js\n\n\n1 error found." ) ;
189
+ assert . strictEqual ( stripAnsi ( result ) , "error: Unexpected . (foo) at foo.js\n\n\n1 error found." ) ;
190
190
} ) ;
191
191
} ) ;
192
192
@@ -214,7 +214,7 @@ describe("formatter:codeframe", () => {
214
214
it ( "should return a string with multiple entries" , ( ) => {
215
215
const result = formatter ( code ) ;
216
216
217
- assert . equal ( stripAnsi ( result ) , [
217
+ assert . strictEqual ( stripAnsi ( result ) , [
218
218
"error: Missing semicolon (semi) at foo.js:1:14:" ,
219
219
"> 1 | const foo = 1" ,
220
220
" | ^" ,
@@ -238,8 +238,8 @@ describe("formatter:codeframe", () => {
238
238
239
239
formatter ( code ) ;
240
240
241
- assert . equal ( chalkStub . yellow . bold . callCount , 0 ) ;
242
- assert . equal ( chalkStub . red . bold . callCount , 1 ) ;
241
+ assert . strictEqual ( chalkStub . yellow . bold . callCount , 0 ) ;
242
+ assert . strictEqual ( chalkStub . red . bold . callCount , 1 ) ;
243
243
} ) ;
244
244
} ) ;
245
245
@@ -262,7 +262,7 @@ describe("formatter:codeframe", () => {
262
262
it ( "should return a string with code preview pointing to the correct location after fixes" , ( ) => {
263
263
const result = formatter ( code ) ;
264
264
265
- assert . equal ( stripAnsi ( result ) , [
265
+ assert . strictEqual ( stripAnsi ( result ) , [
266
266
"error: 'foo' is assigned a value but never used (no-unused-vars) at foo.js:4:11:" ,
267
267
" 2 | " ,
268
268
" 3 | // a comment" ,
@@ -307,7 +307,7 @@ describe("formatter:codeframe", () => {
307
307
it ( "should return a string with multiple entries" , ( ) => {
308
308
const result = formatter ( code ) ;
309
309
310
- assert . equal ( stripAnsi ( result ) , [
310
+ assert . strictEqual ( stripAnsi ( result ) , [
311
311
"error: Missing semicolon (semi) at foo.js:1:14:" ,
312
312
"> 1 | const foo = 1" ,
313
313
" | ^" ,
@@ -343,7 +343,7 @@ describe("formatter:codeframe", () => {
343
343
it ( "should return a string in the correct format" , ( ) => {
344
344
const result = formatter ( code ) ;
345
345
346
- assert . equal ( stripAnsi ( result ) , [
346
+ assert . strictEqual ( stripAnsi ( result ) , [
347
347
"error: Parsing error: Unexpected token { at foo.js:1:2:" ,
348
348
"> 1 | e{}" ,
349
349
" | ^" ,
@@ -368,7 +368,7 @@ describe("formatter:codeframe", () => {
368
368
it ( "should return a string without code preview (codeframe)" , ( ) => {
369
369
const result = formatter ( code ) ;
370
370
371
- assert . equal ( stripAnsi ( result ) , "error: Couldn't find foo.js at foo.js\n\n\n1 error found." ) ;
371
+ assert . strictEqual ( stripAnsi ( result ) , "error: Couldn't find foo.js at foo.js\n\n\n1 error found." ) ;
372
372
} ) ;
373
373
} ) ;
374
374
@@ -388,13 +388,13 @@ describe("formatter:codeframe", () => {
388
388
it ( "should return a string without code preview (codeframe)" , ( ) => {
389
389
const result = formatter ( code ) ;
390
390
391
- assert . equal ( stripAnsi ( result ) , "error: Unexpected foo (foo) at foo.js\n\n\n1 error found." ) ;
391
+ assert . strictEqual ( stripAnsi ( result ) , "error: Unexpected foo (foo) at foo.js\n\n\n1 error found." ) ;
392
392
} ) ;
393
393
394
394
it ( "should output filepath but without 'line:column' appended" , ( ) => {
395
395
const result = formatter ( code ) ;
396
396
397
- assert . equal ( stripAnsi ( result ) , "error: Unexpected foo (foo) at foo.js\n\n\n1 error found." ) ;
397
+ assert . strictEqual ( stripAnsi ( result ) , "error: Unexpected foo (foo) at foo.js\n\n\n1 error found." ) ;
398
398
} ) ;
399
399
} ) ;
400
400
0 commit comments