@@ -228,7 +228,7 @@ result
228
228
229
229
describe ( "Enhanced Hover" , ( ) => {
230
230
it ( "should provide enhanced hover for built-in functions" , ( ) => {
231
- const position = { line : 25 , character : 10 } ; // Over "list/map"
231
+ const position = { line : 27 , character : 7 } ; // Over "list/map"
232
232
const hover = getHoverInfo ( document , position ) ;
233
233
234
234
expect ( hover ) . toBeDefined ( ) ;
@@ -242,7 +242,7 @@ result
242
242
} ) ;
243
243
244
244
it ( "should provide hover for tags with enhanced info" , ( ) => {
245
- const position = { line : 8 , character : 12 } ; // Over "#zero"
245
+ const position = { line : 10 , character : 11 } ; // Over "#zero"
246
246
const hover = getHoverInfo ( document , position ) ;
247
247
248
248
expect ( hover ) . toBeDefined ( ) ;
@@ -256,7 +256,7 @@ result
256
256
} ) ;
257
257
258
258
it ( "should provide hover for operators with documentation" , ( ) => {
259
- const position = { line : 25 , character : 4 } ; // Over "|>"
259
+ const position = { line : 27 , character : 4 } ; // Over "|>"
260
260
const hover = getHoverInfo ( document , position ) ;
261
261
262
262
expect ( hover ) . toBeDefined ( ) ;
@@ -270,7 +270,7 @@ result
270
270
} ) ;
271
271
272
272
it ( "should provide hover for numbers with additional info" , ( ) => {
273
- const position = { line : 4 , character : 8 } ; // Over "10"
273
+ const position = { line : 3 , character : 6 } ; // Over "10"
274
274
const hover = getHoverInfo ( document , position ) ;
275
275
276
276
expect ( hover ) . toBeDefined ( ) ;
@@ -326,22 +326,22 @@ result
326
326
327
327
describe ( "References and Rename" , ( ) => {
328
328
it ( "should find references to identifiers" , ( ) => {
329
- const position = { line : 4 , character : 15 } ; // Over "x" in declaration
329
+ const position = { line : 3 , character : 2 } ; // Over "x" in declaration
330
330
const references = findReferences ( document , position ) ;
331
331
332
332
expect ( references . length ) . toBeGreaterThan ( 1 ) ; // Should find definition and usage
333
333
} ) ;
334
334
335
335
it ( "should prepare rename for valid identifiers" , ( ) => {
336
- const position = { line : 4 , character : 15 } ; // Over "x"
336
+ const position = { line : 2 , character : 11 } ; // Over "x"
337
337
const renameInfo = prepareRename ( document , position ) ;
338
338
339
339
expect ( renameInfo ) . toBeDefined ( ) ;
340
340
expect ( renameInfo ?. placeholder ) . toBe ( "x" ) ;
341
341
} ) ;
342
342
343
343
it ( "should execute rename correctly" , ( ) => {
344
- const position = { line : 4 , character : 15 } ; // Over "x"
344
+ const position = { line : 2 , character : 11 } ; // Over "x"
345
345
const renameResult = executeRename ( document , position , "newX" ) ;
346
346
347
347
expect ( renameResult ) . toBeDefined ( ) ;
0 commit comments