mapbox/mapbox-gl-directions
Tests should fail more gracefully if access token is not set
Aberta
#152 aberto em 20 de out. de 2017
good first issue
Métricas do repositório
- Stars
- (253 estrelas)
- Métricas de merge de PR
- (Mesclagem média 22h 39m) (1 fundiu PR em 30d)
Description
When you run npm test without setting the your access token in your local environment, you get the following error:
# directions
# initialized
ok 1 directions is initialized
# set/get inputs
not ok - Uncaught, unspecified "error" event. ([object Object])
http://localhost:58414/script.js:2069
var err = new Error('Uncaught, unspecified "error" event. (' + er + ')');
It should instead tell you that you're missing your access token.