dwn-sdk-js icon indicating copy to clipboard operation
dwn-sdk-js copied to clipboard

Make `DidIonResolver` tests work if network is unavailable

Open LiranCohen opened this issue 1 year ago • 0 comments

DidIonResolver depends on calling an external API endpoint. When the network is not available, these tests fail.

There was some code around stubbing fetch but this failed for Browser tests with the following error: Can only call Window.fetch on instances of Window.

LiranCohen avatar Oct 05 '23 21:10 LiranCohen