mapbox/mapbox-gl-directions

Tests should fail more gracefully if access token is not set

Offen

#152 geöffnet am 20.10.2017

 (0 Kommentare) (1 Reaktion) (0 zugewiesene Personen)JavaScript (130 Forks)github user discovery
good first issue

Repository-Metriken

Stars
 (253 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 22h 39m) (1 gemergte PR in 30 T)

Beschreibung

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.

Contributor Guide