eth-ui
eth-ui copied to clipboard
v4 tests: useResolveEnsName
Use waffle / hardhat ens option as per their docks
Some Test cases
- make sure when ensName changes the hook updates
- tests to make sure that when provider changes it updates
- test with mock localstorage and if it has data or not
-
- test if the hook fails gracefully when there are errors
this has some funky logic with window.localstorage. you need to mock window.