eth-ui icon indicating copy to clipboard operation
eth-ui copied to clipboard

v4 tests: useEthersUpdater

Open ShravanSunder opened this issue 2 years ago โ€ข 0 comments

Use Hook test strategy mentioned in: https://github.com/scaffold-eth/eth-hooks/issues/118#issue-1092134285

Also create tests for checkUpdateOptions as the hook depends on this.

Test cases:

  • test if update function is called
  • test if all parameters work
  • test if errors are thrown if invalid updateOptions
  • test if block interval and polling are mutually exclusive

ShravanSunder avatar Jan 18 '22 02:01 ShravanSunder