From 9db5ef325baed90ab1def665f71af9edbf76508b Mon Sep 17 00:00:00 2001 From: Vlady Veselinov Date: Thu, 6 Nov 2025 08:09:36 +0000 Subject: [PATCH] clean up fixture --- lib/binding_web/test/node-id-stability.test.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/binding_web/test/node-id-stability.test.ts b/lib/binding_web/test/node-id-stability.test.ts index f73bc1d1..389bfc0e 100644 --- a/lib/binding_web/test/node-id-stability.test.ts +++ b/lib/binding_web/test/node-id-stability.test.ts @@ -24,9 +24,7 @@ describe("node id stability", () => { }); it("node ID of existing variable_declarator is stable after inserting second declaration", () => { - const source1 = ` - let name = "John Doe"; - `; + const source1 = `let name = "John Doe";\n`; tree = parser.parse(source1); const variableDeclaratorsBefore = tree?.rootNode.descendantsOfType( @@ -36,9 +34,7 @@ describe("node id stability", () => { expect(firstDeclarationIdBefore).toBeTypeOf("number"); - const source2 = ` - let age = 31; - `; + const source2 = `let age = 31;\n`; const startIndex = 0; const startPosition = { row: 0, column: 0 };