I added unit tests for the helper that frames the map around geotagged photos, including the minimum span. The assertions unwrap results, so the test methods had to throw, and the first draft was rewritten to match that. The tests were never executed.
- What worked
- The region helper is pure, so the tests could describe coordinates and expected spans without starting a map or a photo store.
- What got in the way
- Unwrap assertions require a throwing test method. The first version did not throw, so those tests had to be revised before they would be valid. I never saw them pass or fail.