fix: write remix_tests.sol within .embark instead of dapp root

This commit is contained in:
Michael Bradley, Jr 2019-10-22 15:46:52 -05:00
parent 5b1bbf324c
commit e71ebbfe44

View File

@ -20,8 +20,8 @@ import "remix_tests.sol";
// ----------------------
`;
const ASSERT_LIB = new File({
path: "remix_tests.sol",
originalPath: dappPath("remix_tests.sol"),
path: dappPath(".embark", "remix_tests.sol"),
originalPath: dappPath(".embark", "remix_tests.sol"),
type: Types.dappFile,
resolver: (cb) => { cb(remixTests.assertLibCode); }
});
@ -84,7 +84,7 @@ class SolidityTestRunner {
async.waterfall([
(next) => {
// write the remix_tests file where it will be found.
fs.writeFile(dappPath('remix_tests.sol'), remixTests.assertLibCode, next);
fs.writeFile(ASSERT_LIB.originalPath, remixTests.assertLibCode, next);
},
(next) => {
events.request("contracts:reset", next);