Skip to content

Commit 6343182

Browse files
committed
Update line and character numbers in tests
1 parent 693c0f4 commit 6343182

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

server/src/server.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ result
228228

229229
describe("Enhanced Hover", () => {
230230
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"
232232
const hover = getHoverInfo(document, position);
233233

234234
expect(hover).toBeDefined();
@@ -242,7 +242,7 @@ result
242242
});
243243

244244
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"
246246
const hover = getHoverInfo(document, position);
247247

248248
expect(hover).toBeDefined();
@@ -256,7 +256,7 @@ result
256256
});
257257

258258
it("should provide hover for operators with documentation", () => {
259-
const position = { line: 25, character: 4 }; // Over "|>"
259+
const position = { line: 27, character: 4 }; // Over "|>"
260260
const hover = getHoverInfo(document, position);
261261

262262
expect(hover).toBeDefined();
@@ -270,7 +270,7 @@ result
270270
});
271271

272272
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"
274274
const hover = getHoverInfo(document, position);
275275

276276
expect(hover).toBeDefined();
@@ -326,22 +326,22 @@ result
326326

327327
describe("References and Rename", () => {
328328
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
330330
const references = findReferences(document, position);
331331

332332
expect(references.length).toBeGreaterThan(1); // Should find definition and usage
333333
});
334334

335335
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"
337337
const renameInfo = prepareRename(document, position);
338338

339339
expect(renameInfo).toBeDefined();
340340
expect(renameInfo?.placeholder).toBe("x");
341341
});
342342

343343
it("should execute rename correctly", () => {
344-
const position = { line: 4, character: 15 }; // Over "x"
344+
const position = { line: 2, character: 11 }; // Over "x"
345345
const renameResult = executeRename(document, position, "newX");
346346

347347
expect(renameResult).toBeDefined();

0 commit comments

Comments
 (0)