-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test our use of ProgressEvent for form attachments #127
Comments
This inability to test In getodk/central#589, I'm writing a small utility function to convert a I think I didn't take quite the right approach in testing I'm not eager to refactor the |
Funnily enough, we actually had a bug related to upload progress that I think was introduced very recently, in v2023.5: getodk/central#606. However, the bug stemmed from a change in axios itself, so it's not something that we would have caught using
axios now calculates this fraction itself, so this utility function won't be needed. Because axios now does the calculation, our code around upload progress can become even simpler. |
We don't currently have an easy way to mock
ProgressEvent
objects.The text was updated successfully, but these errors were encountered: