From 47e1e18e7ec949212ba2a1389c434e589e3a0ce3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Drwi=C4=99ga?= Date: Tue, 13 Jun 2017 16:47:58 +0200 Subject: [PATCH] Ignoring some methods in test. --- js/src/api/api.spec.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/js/src/api/api.spec.js b/js/src/api/api.spec.js index 1c5ebf514..c72b22849 100644 --- a/js/src/api/api.spec.js +++ b/js/src/api/api.spec.js @@ -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); + }); }); }); });