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.