mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
23 lines
469 B
TypeScript
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();
|
|
});
|
|
});
|