You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Details:
Sometimes, we need to provide an errorBuilder for Image.network, and, at least so far, I didn't see a way to test it without mocking httpClient, which is basically what mockNetworkImages already does.
Expected:
mockNetworkImages should have a new option to make the request fail as failed to fetch the image, so Image.Network can use the errorBuilder instead.
I would really appreciate it if someone had a better and simpler way to do it.
The text was updated successfully, but these errors were encountered:
DanielFerrariR
changed the title
Mock Image Network should provide a way to test the errorBuilder from Image.network
mockImageNetwork should provide a way to test the errorBuilder from Image.network
Oct 5, 2023
DanielFerrariR
changed the title
mockImageNetwork should provide a way to test the errorBuilder from Image.network
mockNetworkImages should provide a way to test the errorBuilder from Image.network
Oct 5, 2023
Details:
Sometimes, we need to provide an errorBuilder for Image.network, and, at least so far, I didn't see a way to test it without mocking httpClient, which is basically what mockNetworkImages already does.
Expected:
mockNetworkImages should have a new option to make the request fail as failed to fetch the image, so Image.Network can use the errorBuilder instead.
I would really appreciate it if someone had a better and simpler way to do it.
The text was updated successfully, but these errors were encountered: