mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
28 lines
718 B
JavaScript
28 lines
718 B
JavaScript
|
var assert = require('assert');
|
||
|
var filter = require('../lib/filter');
|
||
|
var u = require('./test.utils.js');
|
||
|
|
||
|
var empty = function () {};
|
||
|
var implementation = {
|
||
|
newFilter: empty,
|
||
|
getMessages: empty,
|
||
|
uninstallFilter: empty,
|
||
|
startPolling: empty,
|
||
|
stopPolling: empty,
|
||
|
};
|
||
|
|
||
|
describe('web3', function () {
|
||
|
describe('eth', function () {
|
||
|
describe('filter', function () {
|
||
|
var f = filter({}, implementation);
|
||
|
|
||
|
u.methodExists(f, 'arrived');
|
||
|
u.methodExists(f, 'happened');
|
||
|
u.methodExists(f, 'changed');
|
||
|
u.methodExists(f, 'messages');
|
||
|
u.methodExists(f, 'logs');
|
||
|
u.methodExists(f, 'uninstall');
|
||
|
});
|
||
|
});
|
||
|
});
|