Ignoring some methods in test.

This commit is contained in:
Tomasz Drwięga 2017-06-13 16:47:58 +02:00
parent 172300158d
commit 47e1e18e7e
No known key found for this signature in database
GPG Key ID: D066F497E62CAF66

View File

@ -36,12 +36,19 @@ describe('api/Api', () => {
describe('interface', () => {
const api = new Api(new Api.Transport.Http(TEST_HTTP_URL, -1));
const ignored = [
'eth_subscribe', 'eth_unsubscribe',
'parity_subscribe', 'parity_unsubscribe',
'signer_subscribePending', 'signer_unsubscribePending'
];
Object.keys(ethereumRpc).sort().forEach((endpoint) => {
describe(endpoint, () => {
Object.keys(ethereumRpc[endpoint]).sort().forEach((method) => {
endpointTest(api, endpoint, method);
});
Object.keys(ethereumRpc[endpoint]).sort()
.filter(method => ignored.indexOf(method) !== -1)
.forEach((method) => {
endpointTest(api, endpoint, method);
});
});
});
});