fix tests

This commit is contained in:
Jonathan Rainville 2018-09-14 15:21:45 -04:00
parent b3b61dd82c
commit d9350899b7
4 changed files with 6 additions and 6 deletions

View File

@ -66,8 +66,8 @@ module.exports = {
file: "./some_folder/test_contract.sol", file: "./some_folder/test_contract.sol",
args: [1000] args: [1000]
}, },
Owned: { StandardToken: {
file: "https://github.com/status-im/contracts/blob/151-embark31/contracts/common/Owned.sol", file: "https://github.com/status-im/contracts/blob/151-embark31/contracts/token/StandardToken.sol",
deploy: false deploy: false
}, },
SimpleStorageWithHttpImport: { SimpleStorageWithHttpImport: {

View File

@ -63,7 +63,7 @@ contract Token {
function safeToAdd(uint a, uint b) internal pure returns (bool) { function safeToAdd(uint a, uint b) internal pure returns (bool) {
return (a + b >= a); return (a + b >= a);
} }
function isAvailable() internal pure returns (bool) { function isAvailable() public pure returns (bool) {
return false; return false;
} }
} }

View File

@ -5,7 +5,7 @@ const assert = require('assert');
describe('http contracts', () => { describe('http contracts', () => {
it('should have downloaded the file in .embark/contracts', (done) => { 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) => { fs.access(contractPath, (err) => {
if (err) { if (err) {
assert.fail(contractPath + ' was not downloaded'); assert.fail(contractPath + ' was not downloaded');
@ -15,7 +15,7 @@ describe('http contracts', () => {
}); });
it('should have downloaded the file import file too', (done) => { 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) => { fs.access(contractImportPath, (err) => {
if (err) { if (err) {
assert.fail(contractImportPath + ' was not downloaded'); assert.fail(contractImportPath + ' was not downloaded');

View File

@ -51,7 +51,7 @@ contract("SimpleStorage", function () {
done(error); done(error);
}); });
SimpleStorage.methods.set2(150, 100).send(); SimpleStorage.methods.set2(150).send();
}); });
}); });