test names

This commit is contained in:
Marek Kotewicz 2015-03-25 23:50:39 +01:00
parent a1ec1493f9
commit 9d5b602023
22 changed files with 18 additions and 20 deletions

View File

@ -9,7 +9,7 @@ var HttpProvider = SandboxedModule.require('../lib/web3/httpprovider', {
}
});
describe('httpprovider', function () {
describe('lib/web3/httpprovider', function () {
describe('send', function () {
it('should send basic request', function () {
var provider = new HttpProvider();

View File

@ -22,7 +22,7 @@ var tests = [{
var testPolling = function (tests) {
describe('polling', function () {
describe('web3.eth.filter.polling', function () {
tests.forEach(function (test, index) {
it('should create && successfully poll filter', function (done) {

View File

@ -9,7 +9,7 @@ var QtSyncProvider = SandboxedModule.require('../lib/web3/qtsync', {
}
});
describe('qtprovider', function () {
describe('/lib/web3/qtsyncprovider', function () {
describe('send', function () {
it('should send basic request', function () {
var provider = new QtSyncProvider();

View File

@ -6,7 +6,7 @@ var FakeHttpProvider = require('./helpers/FakeHttpProvider');
// TODO: handling errors!
// TODO: validation of params!
describe('requestmanager', function () {
describe('lib/web3/requestmanager', function () {
describe('send', function () {
it('should return expected result synchronously', function () {
var provider = new FakeHttpProvider();

View File

@ -11,7 +11,7 @@ var tests = [{
call: 'eth_'+ method
}];
describe('eth', function () {
describe('web3.eth', function () {
describe(method, function () {
tests.forEach(function (test, index) {
it('property test: ' + index, function () {

View File

@ -11,7 +11,7 @@ var tests = [{
call: 'eth_'+ method
}];
describe('eth', function () {
describe('web3.eth', function () {
describe(method, function () {
tests.forEach(function (test, index) {
it('property test: ' + index, function () {

View File

@ -11,7 +11,7 @@ var tests = [{
call: 'eth_'+ method
}];
describe('eth', function () {
describe('web3.eth', function () {
describe(method, function () {
tests.forEach(function (test, index) {
it('property test: ' + index, function () {

View File

@ -1,7 +1,7 @@
var assert = require('assert');
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 () {
// given

View File

@ -28,7 +28,7 @@ var tests = [{
call: 'eth_newBlockFilter'
}];
describe('eth', function () {
describe('web3.eth', function () {
describe(method, function () {
tests.forEach(function (test, index) {
it('property test: ' + index, function () {

View File

@ -12,14 +12,12 @@ var implementation = {
stopPolling: empty,
};
describe('web3', function () {
describe('eth', function () {
describe('filter', function () {
var f = filter({}, implementation);
describe('web3.eth.filter', function () {
describe('methods', function () {
var f = filter({}, implementation);
u.methodExists(f, 'watch');
u.methodExists(f, 'stopWatching');
u.methodExists(f, 'get');
});
u.methodExists(f, 'watch');
u.methodExists(f, 'stopWatching');
u.methodExists(f, 'get');
});
});

View File

@ -3,8 +3,8 @@ var assert = chai.assert;
var web3 = require('../index.js');
var u = require('./helpers/test.utils.js');
describe('web3', function() {
describe('eth', function() {
describe('web3.eth', function() {
describe('methods', function() {
u.methodExists(web3.eth, 'getBalance');
u.methodExists(web3.eth, 'getStorageAt');
u.methodExists(web3.eth, 'getTransactionCount');

View File

@ -11,7 +11,7 @@ var tests = [{
call: 'eth_'+ method
}];
describe('eth', function () {
describe('web3.eth', function () {
describe(method, function () {
tests.forEach(function (test, index) {
it('property test: ' + index, function () {