mapbox/mapbox-gl-directions
Tests should fail more gracefully if access token is not set
オープン
#152 opened on 2017/10/20
good first issue
Repository metrics
- Stars
- (253 個のスター)
- PR merge metrics
- (平均マージ 22h 39m) (30d で 1 merged PR)
説明
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.