diff options
author | Francesco Agosti <francesco.agosti93@gmail.com> | 2018-06-07 08:21:09 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-07 08:21:09 +0800 |
commit | 67c4ad128c405692e471274148c9a2ef7cd8b6ca (patch) | |
tree | b410c792b110bbae4d1814aab8115b2b3120f65d /packages/dev-utils/test/rpc_test.ts | |
parent | 5989844f1c3d00f57f1ab86a00aa97e17751c576 (diff) | |
parent | 870eca0d9f875f784c1847993246db3097f68405 (diff) | |
download | dexon-0x-contracts-67c4ad128c405692e471274148c9a2ef7cd8b6ca.tar.gz dexon-0x-contracts-67c4ad128c405692e471274148c9a2ef7cd8b6ca.tar.zst dexon-0x-contracts-67c4ad128c405692e471274148c9a2ef7cd8b6ca.zip |
Merge pull request #662 from 0xProject/feature/improve-linting
Tried enabling no-unused-variable...
Diffstat (limited to 'packages/dev-utils/test/rpc_test.ts')
-rw-r--r-- | packages/dev-utils/test/rpc_test.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/dev-utils/test/rpc_test.ts b/packages/dev-utils/test/rpc_test.ts index cff946e23..68842ed3a 100644 --- a/packages/dev-utils/test/rpc_test.ts +++ b/packages/dev-utils/test/rpc_test.ts @@ -16,6 +16,7 @@ describe('RPC tests', () => { const blockNumberBefore = await web3Wrapper.getBlockNumberAsync(); await web3Wrapper.mineBlockAsync(); const blockNumberAfter = await web3Wrapper.getBlockNumberAsync(); + // tslint:disable-next-line:restrict-plus-operands expect(blockNumberAfter).to.be.equal(blockNumberBefore + 1); }); }); @@ -26,6 +27,7 @@ describe('RPC tests', () => { await web3Wrapper.increaseTimeAsync(TIME_DELTA); await web3Wrapper.mineBlockAsync(); const blockTimestampAfter = await web3Wrapper.getBlockTimestampAsync(BlockParamLiteral.Latest); + // tslint:disable-next-line:restrict-plus-operands expect(blockTimestampAfter).to.be.at.least(blockTimestampBefore + TIME_DELTA); }); }); |