mapbox / mapbox-gl-accessibility

An accessibility control for Mapbox GL JS
https://labs.mapbox.com/mapbox-gl-accessibility
ISC License
69 stars 21 forks source link

Add some tests #33

Closed allthesignals closed 4 years ago

allthesignals commented 4 years ago

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.

allthesignals commented 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...