Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
Merge branch 'develop' into slice-override
Browse files Browse the repository at this point in the history
  • Loading branch information
haltman-at committed Jun 5, 2020
2 parents 6ea52b6 + ebce9ac commit 13f9e70
Showing 1 changed file with 1 addition and 27 deletions.
28 changes: 1 addition & 27 deletions packages/compile-solidity/test/test_JSparser.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe("JSparser", () => {
working_directory: __dirname
};

it("resolves imports quickly when using solcjs parser instead of docker [ @native ]", done => {
it("resolves imports when using solcjs parser instead of docker [ @native ]", done => {
options.compilers.solc.version = "0.4.22";
options.compilers.solc.docker = true;
options.contracts_directory = path.join(__dirname, "./sources/v0.4.x");
Expand All @@ -48,32 +48,6 @@ describe("JSparser", () => {
});
}).timeout(20000);

it("resolves imports quickly when using solcjs parser instead of native solc", done => {
options.compilers.solc.version = "native";
delete options.compilers.solc.docker;
options.contracts_directory = path.join(__dirname, "./sources/v0.6.x");

const paths = [];
paths.push(path.join(__dirname, "./sources/v0.6.x/ComplexOrdered.sol"));
paths.push(path.join(__dirname, "./sources/v0.6.x/InheritB.sol"));

options.paths = paths;
options.resolver = new Resolver(options);

const config = Config.default().merge(options);

compile.with_dependencies(config, (err, result) => {
if (err) return done(err);

// This contract imports / inherits
assert(
result["ComplexOrdered"].contract_name === "ComplexOrdered",
"Should have compiled"
);
done();
});
}).timeout(20000);

it("properly throws when passed an invalid parser value", done => {
options.compilers.solc.parser = "badParser";
options.contracts_directory = path.join(__dirname, "./sources/v0.5.x");
Expand Down

0 comments on commit 13f9e70

Please sign in to comment.