Skip to content

Commit aa5efab

Browse files
committed
update tests
1 parent 32a2b7c commit aa5efab

File tree

4 files changed

+33
-7
lines changed

4 files changed

+33
-7
lines changed

lib/contracts/abi.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ class ABIGenerator {
55
this.storageConfig = options.storageConfig || {};
66
this.communicationConfig = options.communicationConfig || {};
77
this.contractsManager = options.contractsManager;
8-
this.rpcHost = options.blockchainConfig && options.blockchainConfig.rpcHost;
9-
this.rpcPort = options.blockchainConfig && options.blockchainConfig.rpcPort;
108
this.plugins = options.plugins;
119
this.events = options.events;
1210
}

test/abi.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/compiler.js

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/contracts.js

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
/*globals describe, it*/
22
let ContractsManager = require('../lib/contracts/contracts.js');
33
let Logger = require('../lib/core/logger.js');
4+
let File = require('../lib/core/file.js');
45
let assert = require('assert');
56
let fs = require('fs');
67

78
let readFile = function(file) {
8-
return {filename: file, content: fs.readFileSync(file).toString()};
9+
return new File({filename: file, type: 'dapp_file', path: file});
910
};
1011

1112
describe('embark.Contratcs', function() {
@@ -17,6 +18,19 @@ describe('embark.Contratcs', function() {
1718
readFile('test/contracts/token.sol')
1819
],
1920
contractsConfig: {
21+
"versions": {
22+
"web3.js": "0.19.1",
23+
"solc": "0.4.11"
24+
},
25+
"deployment": {
26+
"host": "localhost",
27+
"port": 8545,
28+
"type": "rpc"
29+
},
30+
"dappConnection": [
31+
"$WEB3",
32+
"localhost:8545"
33+
],
2034
"gas": "auto",
2135
"contracts": {
2236
"Token": {
@@ -76,6 +90,19 @@ describe('embark.Contratcs', function() {
7690
readFile('test/contracts/token_storage.sol')
7791
],
7892
contractsConfig: {
93+
"versions": {
94+
"web3.js": "0.19.1",
95+
"solc": "0.4.11"
96+
},
97+
"deployment": {
98+
"host": "localhost",
99+
"port": 8545,
100+
"type": "rpc"
101+
},
102+
"dappConnection": [
103+
"$WEB3",
104+
"localhost:8545"
105+
],
79106
"gas": "auto",
80107
"contracts": {
81108
"TokenStorage": {

0 commit comments

Comments
 (0)