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

v4 tests: useResolveEnsName

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

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.

ShravanSunder avatar Jan 18 '22 02:01 ShravanSunder