parity.js api.parity.chainStatus should handle { blockGap: null } (#4327)

* Add tests for null blockGap values

* Handle null blockGap values
This commit is contained in:
Jaco Greeff
2017-01-27 14:42:22 +01:00
committed by GitHub
parent 1940809dd4
commit 076c8b9de7
3 changed files with 19 additions and 1 deletions

View File

@@ -19,6 +19,14 @@ import { createHttpApi } from '../../../../test/e2e/ethapi';
describe('ethapi.parity', () => {
const ethapi = createHttpApi();
describe('chainStatus', () => {
it('returns and translates the status', () => {
return ethapi.parity.chainStatus().then((value) => {
expect(value).to.be.ok;
});
});
});
describe('gasFloorTarget', () => {
it('returns and translates the target', () => {
return ethapi.parity.gasFloorTarget().then((value) => {