mapbox/mapbox-gl-directions
Tests should fail more gracefully if access token is not set
開放
#152 建立於 2017年10月20日
good first issue
倉庫指標
- 星標
- (253 顆星)
- PR 合併指標
- (平均合併 22小時 39分鐘) (30 天內合併 1 個 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.