Files
bun.sh/test/js/third_party/solc/solc.test.ts
2025-02-19 20:47:40 -08:00

23 lines
469 B
TypeScript

import solc from "solc";
describe("solc", () => {
it("can compile a simple program", () => {
const input = {
language: "Solidity",
sources: {
"test.sol": {
content: "contract C { function f() public { } }",
},
},
settings: {
outputSelection: {
"*": {
"*": ["*"],
},
},
},
};
expect(() => solc.compile(JSON.stringify(input))).not.toThrow();
});
});