title: How to simulate block minting in smart contracts unit test?
body: <p>I am writing a smart contract for staking. Earnings are increased each time a new block is minted.
  In order to test the calculation of earnings, I need to simulate a certain number of blocks to be minted in my test suite.
  Is there a function in web3.js to do this?</p>