From 9993fcb2fc08883ff532033f44ee2dc5b17cf646 Mon Sep 17 00:00:00 2001 From: "coderabbitai[bot]" <136622811+coderabbitai[bot]@users.noreply.github.com> Date: Sun, 13 Sep 2026 04:55:01 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20CodeRabbit=20Chat:=20Remove=20Ex?= =?UTF-8?q?cess=20Empty=20Lines=20from=20TypeScript=20Tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ts/tests/index.test.ts | 2 -- ts/tests/isMusl.test.ts | 2 -- ts/tests/loadNapi.test.ts | 2 -- ts/tests/vmerror.test.ts | 3 --- 4 files changed, 9 deletions(-) diff --git a/ts/tests/index.test.ts b/ts/tests/index.test.ts index e0e2c852..9f8c829b 100644 --- a/ts/tests/index.test.ts +++ b/ts/tests/index.test.ts @@ -33,7 +33,6 @@ describe("LightVM Suite", () => { ["println"], ]; const result = tools.optimizeBytecode(raw); - expect(result).toEqual([{ push_int16: 20 }, "println"]); }); @@ -111,7 +110,6 @@ describe("LightVM Suite", () => { test("provide should accept key-value pairs", () => { const vm = createVM(); - expect(() => vm.provide({ test: 123 })).not.toThrow(); }); }); diff --git a/ts/tests/isMusl.test.ts b/ts/tests/isMusl.test.ts index 67abb45c..d0010d57 100644 --- a/ts/tests/isMusl.test.ts +++ b/ts/tests/isMusl.test.ts @@ -18,7 +18,6 @@ describe("isMusl Utility", () => { const mockReportProvider = { getReport: () => ({ header: {} }), }; - expect(isMusl(mockReportProvider)).toBe(true); }); @@ -28,7 +27,6 @@ describe("isMusl Utility", () => { throw new Error("Failed"); }, }; - const result = isMusl(brokenProvider); expect(typeof result).toBe("boolean"); }); diff --git a/ts/tests/loadNapi.test.ts b/ts/tests/loadNapi.test.ts index c1ffb4bc..2581811f 100644 --- a/ts/tests/loadNapi.test.ts +++ b/ts/tests/loadNapi.test.ts @@ -34,9 +34,7 @@ describe("loadNapi Utility", () => { if (scenario !== "reject-invalid-sig") { test("loadNapi: should load and return native module (cached)", () => { const native1 = loadNapi(); - const native2 = loadNapi(); - expect(native1).toBe(native2); expect(native1).toBeDefined(); }); diff --git a/ts/tests/vmerror.test.ts b/ts/tests/vmerror.test.ts index 80ced6ac..d118a641 100644 --- a/ts/tests/vmerror.test.ts +++ b/ts/tests/vmerror.test.ts @@ -18,13 +18,10 @@ describe("VMError Class", () => { const msg = "Something went wrong"; const details = ["test", "there is testing"]; const err = new VMError(msg, details); - expect(err.code).toBe("LVM500"); expect(err.ip).toBe(0); - expect(err).toBeInstanceOf(VMError); expect(err.name).toBe(""); - expect(err.hintDetails.length).toBe(2); expect(err.code).toContain("LVM500"); });