2015-03-23 15:10:18 -07:00
|
|
|
var chai = require('chai');
|
|
|
|
var assert = chai.assert;
|
2015-03-08 10:18:52 -07:00
|
|
|
var filter = require('../lib/web3/filter');
|
2015-03-23 15:10:18 -07:00
|
|
|
var u = require('./helpers/test.utils.js');
|
2015-02-05 14:11:16 -08:00
|
|
|
|
|
|
|
var empty = function () {};
|
|
|
|
var implementation = {
|
|
|
|
newFilter: empty,
|
2015-02-23 09:30:37 -08:00
|
|
|
getLogs: empty,
|
2015-02-05 14:11:16 -08:00
|
|
|
uninstallFilter: empty,
|
|
|
|
startPolling: empty,
|
|
|
|
stopPolling: empty,
|
|
|
|
};
|
|
|
|
|
2015-03-25 15:50:39 -07:00
|
|
|
describe('web3.eth.filter', function () {
|
|
|
|
describe('methods', function () {
|
2015-06-24 01:28:12 -07:00
|
|
|
// var f = filter({}, implementation);
|
2015-02-05 14:11:16 -08:00
|
|
|
|
2015-06-24 01:28:12 -07:00
|
|
|
// u.methodExists(f, 'watch');
|
|
|
|
// u.methodExists(f, 'stopWatching');
|
|
|
|
// u.methodExists(f, 'get');
|
2015-02-05 14:11:16 -08:00
|
|
|
});
|
|
|
|
});
|