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
What about the code under test? What is userAPI? Where are the UserPreferences and UserPreferencesMock defined?
What Http class are you using? In your original post, the code that isn't covered comes after awaiting the result of what looks like a network request. How are you mocking this for testing? Are you sure that missed line is actually being hit?
Activity
liamappelbe commentedon Aug 18, 2022
@JeanPSF I can't reproduce this based on just these small code snippets. Can you give me more context, or better yet, post a minimal repro program?
JeanPSF commentedon Aug 25, 2022
The tests I am running are these (they are passing).
liamappelbe commentedon Aug 25, 2022
What about the code under test? What is
userAPI? Where are theUserPreferencesandUserPreferencesMockdefined?What
Httpclass are you using? In your original post, the code that isn't covered comes after awaiting the result of what looks like a network request. How are you mocking this for testing? Are you sure that missed line is actually being hit?