Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions ts/tests/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ describe("LightVM Suite", () => {
["println"],
];
const result = tools.optimizeBytecode(raw);

expect(result).toEqual([{ push_int16: 20 }, "println"]);
});

Expand Down Expand Up @@ -111,7 +110,6 @@ describe("LightVM Suite", () => {

test("provide should accept key-value pairs", () => {
const vm = createVM();

expect(() => vm.provide({ test: 123 })).not.toThrow();
});
});
Expand Down
2 changes: 0 additions & 2 deletions ts/tests/isMusl.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ describe("isMusl Utility", () => {
const mockReportProvider = {
getReport: () => ({ header: {} }),
};

expect(isMusl(mockReportProvider)).toBe(true);
});

Expand All @@ -28,7 +27,6 @@ describe("isMusl Utility", () => {
throw new Error("Failed");
},
};

const result = isMusl(brokenProvider);
expect(typeof result).toBe("boolean");
});
Expand Down
2 changes: 0 additions & 2 deletions ts/tests/loadNapi.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Expand Down
3 changes: 0 additions & 3 deletions ts/tests/vmerror.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
});
Expand Down
Loading