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"); });