File tree 2 files changed +5
-5
lines changed
packages/vite/src/node/__tests__ 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -115,23 +115,23 @@ exports[`generateCodeFrames > start with number 4`] = `
115
115
"
116
116
` ;
117
117
118
- exports [` generateCodeFrames > start with postion 1` ] = `
118
+ exports [` generateCodeFrames > start with position 1` ] = `
119
119
"
120
120
1 | import foo from './foo'
121
121
| ^
122
122
2 | foo()
123
123
"
124
124
` ;
125
125
126
- exports [` generateCodeFrames > start with postion 2` ] = `
126
+ exports [` generateCodeFrames > start with position 2` ] = `
127
127
"
128
128
1 | import foo from './foo'
129
129
| ^
130
130
2 | foo()
131
131
"
132
132
` ;
133
133
134
- exports [` generateCodeFrames > start with postion 3` ] = `
134
+ exports [` generateCodeFrames > start with position 3` ] = `
135
135
"
136
136
1 | import foo from './foo'
137
137
2 | foo()
Original file line number Diff line number Diff line change @@ -248,7 +248,7 @@ describe('generateCodeFrames', () => {
248
248
import foo from './foo'
249
249
foo()
250
250
` . trim ( )
251
- const sourceCrLf = source . replace ( / \n / , '\r\n' )
251
+ const sourceCrLf = source . replaceAll ( '\n' , '\r\n' )
252
252
const longSource = `
253
253
import foo from './foo'
254
254
@@ -276,7 +276,7 @@ foo()
276
276
expectSnapshot ( generateCodeFrame ( source , 24 ) )
277
277
} )
278
278
279
- test ( 'start with postion ' , ( ) => {
279
+ test ( 'start with position ' , ( ) => {
280
280
expectSnapshot ( generateCodeFrame ( source , { line : 1 , column : 0 } ) )
281
281
expectSnapshot ( generateCodeFrame ( source , { line : 1 , column : 1 } ) )
282
282
expectSnapshot ( generateCodeFrame ( source , { line : 2 , column : 0 } ) )
You can’t perform that action at this time.
0 commit comments