mirror of
https://github.com/status-im/web3.js.git
synced 2025-02-23 11:38:12 +00:00
test names
This commit is contained in:
parent
a1ec1493f9
commit
9d5b602023
@ -9,7 +9,7 @@ var HttpProvider = SandboxedModule.require('../lib/web3/httpprovider', {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('httpprovider', function () {
|
describe('lib/web3/httpprovider', function () {
|
||||||
describe('send', function () {
|
describe('send', function () {
|
||||||
it('should send basic request', function () {
|
it('should send basic request', function () {
|
||||||
var provider = new HttpProvider();
|
var provider = new HttpProvider();
|
||||||
|
@ -22,7 +22,7 @@ var tests = [{
|
|||||||
|
|
||||||
var testPolling = function (tests) {
|
var testPolling = function (tests) {
|
||||||
|
|
||||||
describe('polling', function () {
|
describe('web3.eth.filter.polling', function () {
|
||||||
tests.forEach(function (test, index) {
|
tests.forEach(function (test, index) {
|
||||||
it('should create && successfully poll filter', function (done) {
|
it('should create && successfully poll filter', function (done) {
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ var QtSyncProvider = SandboxedModule.require('../lib/web3/qtsync', {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('qtprovider', function () {
|
describe('/lib/web3/qtsyncprovider', function () {
|
||||||
describe('send', function () {
|
describe('send', function () {
|
||||||
it('should send basic request', function () {
|
it('should send basic request', function () {
|
||||||
var provider = new QtSyncProvider();
|
var provider = new QtSyncProvider();
|
||||||
|
@ -6,7 +6,7 @@ var FakeHttpProvider = require('./helpers/FakeHttpProvider');
|
|||||||
// TODO: handling errors!
|
// TODO: handling errors!
|
||||||
// TODO: validation of params!
|
// TODO: validation of params!
|
||||||
|
|
||||||
describe('requestmanager', function () {
|
describe('lib/web3/requestmanager', function () {
|
||||||
describe('send', function () {
|
describe('send', function () {
|
||||||
it('should return expected result synchronously', function () {
|
it('should return expected result synchronously', function () {
|
||||||
var provider = new FakeHttpProvider();
|
var provider = new FakeHttpProvider();
|
||||||
|
@ -11,7 +11,7 @@ var tests = [{
|
|||||||
call: 'eth_'+ method
|
call: 'eth_'+ method
|
||||||
}];
|
}];
|
||||||
|
|
||||||
describe('eth', function () {
|
describe('web3.eth', function () {
|
||||||
describe(method, function () {
|
describe(method, function () {
|
||||||
tests.forEach(function (test, index) {
|
tests.forEach(function (test, index) {
|
||||||
it('property test: ' + index, function () {
|
it('property test: ' + index, function () {
|
@ -11,7 +11,7 @@ var tests = [{
|
|||||||
call: 'eth_'+ method
|
call: 'eth_'+ method
|
||||||
}];
|
}];
|
||||||
|
|
||||||
describe('eth', function () {
|
describe('web3.eth', function () {
|
||||||
describe(method, function () {
|
describe(method, function () {
|
||||||
tests.forEach(function (test, index) {
|
tests.forEach(function (test, index) {
|
||||||
it('property test: ' + index, function () {
|
it('property test: ' + index, function () {
|
@ -11,7 +11,7 @@ var tests = [{
|
|||||||
call: 'eth_'+ method
|
call: 'eth_'+ method
|
||||||
}];
|
}];
|
||||||
|
|
||||||
describe('eth', function () {
|
describe('web3.eth', function () {
|
||||||
describe(method, function () {
|
describe(method, function () {
|
||||||
tests.forEach(function (test, index) {
|
tests.forEach(function (test, index) {
|
||||||
it('property test: ' + index, function () {
|
it('property test: ' + index, function () {
|
@ -1,7 +1,7 @@
|
|||||||
var assert = require('assert');
|
var assert = require('assert');
|
||||||
var contract = require('../lib/web3/contract.js');
|
var contract = require('../lib/web3/contract.js');
|
||||||
|
|
||||||
describe('contract', function() {
|
describe('web3.eth.contract', function() {
|
||||||
it('should create simple contract with one method from abi with explicit type name', function () {
|
it('should create simple contract with one method from abi with explicit type name', function () {
|
||||||
|
|
||||||
// given
|
// given
|
@ -28,7 +28,7 @@ var tests = [{
|
|||||||
call: 'eth_newBlockFilter'
|
call: 'eth_newBlockFilter'
|
||||||
}];
|
}];
|
||||||
|
|
||||||
describe('eth', function () {
|
describe('web3.eth', function () {
|
||||||
describe(method, function () {
|
describe(method, function () {
|
||||||
tests.forEach(function (test, index) {
|
tests.forEach(function (test, index) {
|
||||||
it('property test: ' + index, function () {
|
it('property test: ' + index, function () {
|
@ -12,14 +12,12 @@ var implementation = {
|
|||||||
stopPolling: empty,
|
stopPolling: empty,
|
||||||
};
|
};
|
||||||
|
|
||||||
describe('web3', function () {
|
describe('web3.eth.filter', function () {
|
||||||
describe('eth', function () {
|
describe('methods', function () {
|
||||||
describe('filter', function () {
|
|
||||||
var f = filter({}, implementation);
|
var f = filter({}, implementation);
|
||||||
|
|
||||||
u.methodExists(f, 'watch');
|
u.methodExists(f, 'watch');
|
||||||
u.methodExists(f, 'stopWatching');
|
u.methodExists(f, 'stopWatching');
|
||||||
u.methodExists(f, 'get');
|
u.methodExists(f, 'get');
|
||||||
});
|
});
|
||||||
});
|
|
||||||
});
|
});
|
@ -3,8 +3,8 @@ var assert = chai.assert;
|
|||||||
var web3 = require('../index.js');
|
var web3 = require('../index.js');
|
||||||
var u = require('./helpers/test.utils.js');
|
var u = require('./helpers/test.utils.js');
|
||||||
|
|
||||||
describe('web3', function() {
|
describe('web3.eth', function() {
|
||||||
describe('eth', function() {
|
describe('methods', function() {
|
||||||
u.methodExists(web3.eth, 'getBalance');
|
u.methodExists(web3.eth, 'getBalance');
|
||||||
u.methodExists(web3.eth, 'getStorageAt');
|
u.methodExists(web3.eth, 'getStorageAt');
|
||||||
u.methodExists(web3.eth, 'getTransactionCount');
|
u.methodExists(web3.eth, 'getTransactionCount');
|
@ -11,7 +11,7 @@ var tests = [{
|
|||||||
call: 'eth_'+ method
|
call: 'eth_'+ method
|
||||||
}];
|
}];
|
||||||
|
|
||||||
describe('eth', function () {
|
describe('web3.eth', function () {
|
||||||
describe(method, function () {
|
describe(method, function () {
|
||||||
tests.forEach(function (test, index) {
|
tests.forEach(function (test, index) {
|
||||||
it('property test: ' + index, function () {
|
it('property test: ' + index, function () {
|
Loading…
x
Reference in New Issue
Block a user