aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMarek Kotewicz <marek.kotewicz@gmail.com>2015-01-22 03:43:20 +0800
committerMarek Kotewicz <marek.kotewicz@gmail.com>2015-01-22 03:43:20 +0800
commitceb4357a8d66e5112369293b15247f03c561c514 (patch)
tree915e03281096df16c8d351574409fc98fd62aafe /test
parentfc986a3fbee02a4fcfbd4e74d9881fc25d5538b4 (diff)
downloaddexon-ceb4357a8d66e5112369293b15247f03c561c514.tar
dexon-ceb4357a8d66e5112369293b15247f03c561c514.tar.gz
dexon-ceb4357a8d66e5112369293b15247f03c561c514.tar.bz2
dexon-ceb4357a8d66e5112369293b15247f03c561c514.tar.lz
dexon-ceb4357a8d66e5112369293b15247f03c561c514.tar.xz
dexon-ceb4357a8d66e5112369293b15247f03c561c514.tar.zst
dexon-ceb4357a8d66e5112369293b15247f03c561c514.zip
sync api tests running, removed unused pieces of code
Diffstat (limited to 'test')
-rw-r--r--test/db.methods.js1
-rw-r--r--test/eth.methods.js1
-rw-r--r--test/shh.methods.js1
-rw-r--r--test/utils.js2
-rw-r--r--test/web3.methods.js1
5 files changed, 1 insertions, 5 deletions
diff --git a/test/db.methods.js b/test/db.methods.js
index 662f4e7cc..55cf699fe 100644
--- a/test/db.methods.js
+++ b/test/db.methods.js
@@ -3,7 +3,6 @@ require('es6-promise').polyfill();
var assert = require('assert');
var web3 = require('../index.js');
var u = require('./utils.js');
-web3.setProvider(new web3.providers.WebSocketProvider('http://localhost:8080')); // TODO: create some mock provider
describe('web3', function() {
describe('db', function() {
diff --git a/test/eth.methods.js b/test/eth.methods.js
index 892db0d8b..5baedb884 100644
--- a/test/eth.methods.js
+++ b/test/eth.methods.js
@@ -3,7 +3,6 @@ require('es6-promise').polyfill();
var assert = require('assert');
var web3 = require('../index.js');
var u = require('./utils.js');
-web3.setProvider(new web3.providers.WebSocketProvider('http://localhost:8080')); // TODO: create some mock provider
describe('web3', function() {
describe('eth', function() {
diff --git a/test/shh.methods.js b/test/shh.methods.js
index f2f56edbc..2e7e1387b 100644
--- a/test/shh.methods.js
+++ b/test/shh.methods.js
@@ -3,7 +3,6 @@ require('es6-promise').polyfill();
var assert = require('assert');
var web3 = require('../index.js');
var u = require('./utils.js');
-web3.setProvider(new web3.providers.WebSocketProvider('http://localhost:8080')); // TODO: create some mock provider
describe('web3', function() {
describe('shh', function() {
diff --git a/test/utils.js b/test/utils.js
index 8617348e4..8a1e9a0b6 100644
--- a/test/utils.js
+++ b/test/utils.js
@@ -8,7 +8,7 @@ var methodExists = function (object, method) {
var propertyExists = function (object, property) {
it('should have property ' + property + ' implemented', function() {
- assert.equal('object', typeof object[property], 'property ' + property + ' is not implemented');
+ assert.notEqual('undefined', typeof object[property], 'property ' + property + ' is not implemented');
});
};
diff --git a/test/web3.methods.js b/test/web3.methods.js
index 5c30177e5..3ff4103e3 100644
--- a/test/web3.methods.js
+++ b/test/web3.methods.js
@@ -3,7 +3,6 @@ require('es6-promise').polyfill();
var assert = require('assert');
var web3 = require('../index.js');
var u = require('./utils.js');
-web3.setProvider(new web3.providers.WebSocketProvider('http://localhost:8080')); // TODO: create some mock provider
describe('web3', function() {
u.methodExists(web3, 'sha3');