Files
openzeppelin-contracts/test/helpers/test/advanceToBlock.test.js
Nicolás Venturo 9f822906b8 First test helpers tests (#1369)
* Removed unused advanceToBlock.

* Added advanceBlock tests.

* Fixed advanceToBlock tests.

* Added single argument tests.

* Finished inLogs tests.

* Fixed linter errors.

* Fixed linter errors.
2018-10-10 20:55:10 -03:00

20 lines
529 B
JavaScript

const advanceToBlock = require('../advanceToBlock');
const BigNumber = web3.BigNumber;
require('chai')
.use(require('chai-bignumber')(BigNumber))
.should();
describe('advanceToBlock', function () {
beforeEach(function () {
this.startingBlock = web3.eth.blockNumber;
});
describe('advanceBlock', function () {
it('increases the block number by one', async function () {
await advanceToBlock.advanceBlock();
web3.eth.blockNumber.should.be.bignumber.equal(this.startingBlock + 1);
});
});
});