mirror of
https://github.com/embarklabs/embark.git
synced 2025-02-19 17:14:40 +00:00
fix: write remix_tests.sol within .embark instead of dapp root
This commit is contained in:
parent
5b1bbf324c
commit
e71ebbfe44
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user