eth-ui
eth-ui copied to clipboard
v4 tests: useEthersUpdater
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