Closed allthesignals closed 4 years ago
They are using mapbox-gl-js-mock to simulate map methods: https://github.com/mapbox/mapbox-gl-js-mock
Mocks like this are a step removed from "reality" but also make testing way easier. In the absence of any testing, this seems like a simpler approach to get a baseline (until we decide we need to use the Real Map)
Also if it's good enough for the excellent mapbox-gl-draw plugin...
Let's add some basic tests to this.
We can use mapbox-gl-draw as a template: https://github.com/mapbox/mapbox-gl-draw/tree/master/test.