mirror of https://github.com/embarklabs/embark.git
fix tests
This commit is contained in:
parent
b3b61dd82c
commit
d9350899b7
|
@ -66,8 +66,8 @@ module.exports = {
|
|||
file: "./some_folder/test_contract.sol",
|
||||
args: [1000]
|
||||
},
|
||||
Owned: {
|
||||
file: "https://github.com/status-im/contracts/blob/151-embark31/contracts/common/Owned.sol",
|
||||
StandardToken: {
|
||||
file: "https://github.com/status-im/contracts/blob/151-embark31/contracts/token/StandardToken.sol",
|
||||
deploy: false
|
||||
},
|
||||
SimpleStorageWithHttpImport: {
|
||||
|
|
|
@ -63,7 +63,7 @@ contract Token {
|
|||
function safeToAdd(uint a, uint b) internal pure returns (bool) {
|
||||
return (a + b >= a);
|
||||
}
|
||||
function isAvailable() internal pure returns (bool) {
|
||||
function isAvailable() public pure returns (bool) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@ const assert = require('assert');
|
|||
describe('http contracts', () => {
|
||||
|
||||
it('should have downloaded the file in .embark/contracts', (done) => {
|
||||
const contractPath = '.embark/contracts/status-im/contracts/master/contracts/identity/Identity.sol';
|
||||
const contractPath = '.embark/contracts/status-im/contracts/151-embark31/contracts/token/StandardToken.sol';
|
||||
fs.access(contractPath, (err) => {
|
||||
if (err) {
|
||||
assert.fail(contractPath + ' was not downloaded');
|
||||
|
@ -15,7 +15,7 @@ describe('http contracts', () => {
|
|||
});
|
||||
|
||||
it('should have downloaded the file import file too', (done) => {
|
||||
const contractImportPath = '.embark/contracts/status-im/contracts/master/contracts/identity/ERC725.sol';
|
||||
const contractImportPath = '.embark/contracts/status-im/contracts/151-embark31/contracts/token/ERC20Token.sol';
|
||||
fs.access(contractImportPath, (err) => {
|
||||
if (err) {
|
||||
assert.fail(contractImportPath + ' was not downloaded');
|
||||
|
|
|
@ -51,7 +51,7 @@ contract("SimpleStorage", function () {
|
|||
done(error);
|
||||
});
|
||||
|
||||
SimpleStorage.methods.set2(150, 100).send();
|
||||
SimpleStorage.methods.set2(150).send();
|
||||
});
|
||||
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue