Skip to content
This repository was archived by the owner on Jan 22, 2018. It is now read-only.

Commit 46e779c

Browse files
committedNov 6, 2017
Check actual endpoints
1 parent e9f91f6 commit 46e779c

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed
 

‎src/api.spec.js

+12-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const util = require('./util');
2626
const Api = require('./api');
2727

2828
describe('Api', () => {
29-
describe('interface', () => {
29+
describe('interface', (done) => {
3030
const api = new Api(new Api.Provider.Http(TEST_HTTP_URL, -1));
3131
const ignored = [
3232
'eth_subscribe', 'eth_unsubscribe',
@@ -36,10 +36,19 @@ describe('Api', () => {
3636

3737
Object.keys(ethereumRpc).sort().forEach((endpoint) => {
3838
describe(endpoint, () => {
39-
Object.keys(ethereumRpc[endpoint]).sort()
39+
Object
40+
.keys(ethereumRpc[endpoint])
41+
.sort()
4042
.filter(method => ignored.indexOf(method) !== -1)
41-
.forEach((method) => {
43+
.map((method) => {
4244
endpointTest(api, endpoint, method);
45+
})
46+
.find((item, index) => {
47+
if (index === 0) {
48+
done();
49+
}
50+
51+
return false;
4352
});
4453
});
4554
});

‎src/util/format.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
const { bytesToHex, cleanupValue, hexToBytes, hexToAscii, bytesToAscii, asciiToHex, padLeft, padRight } = require('./format');
1818

19-
describe.only('util/format', () => {
19+
describe('util/format', () => {
2020
describe('bytesToHex', () => {
2121
it('correctly converts an empty array', () => {
2222
expect(bytesToHex([])).to.equal('0x');

0 commit comments

Comments
 (0)
This repository has been archived.