Skip to content

Commit

Permalink
Bump mapbox-gl version + fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Lauren Budorick authored Oct 20, 2017
2 parents e962b7e + 4168a2d commit 9bc90b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
]
},
"peerDependencies": {
"mapbox-gl": "^0.27.0 || ^0.28.0"
"mapbox-gl": "^0.41.0"
},
"scripts": {
"prepublish": "npm run build",
Expand Down Expand Up @@ -48,7 +48,7 @@
"insert-css": "^2.0.0",
"json-loader": "0.5.4",
"lodash.once": "^4.0.0",
"mapbox-gl": "^0.27.0",
"mapbox-gl": "^0.41.0",
"smokestack": "^3.3.1",
"tap-status": "^1.0.1",
"tape": "^4.6.0",
Expand All @@ -57,9 +57,9 @@
"webworkify-webpack": "1.1.7"
},
"dependencies": {
"babelify": "^7.3.0",
"babel-plugin-transform-inline-environment-variables": "^6.8.0",
"babel-preset-es2015": "^6.9.0",
"babelify": "^7.3.0",
"deep-assign": "^2.0.0",
"lodash.debounce": "^4.0.6",
"lodash.isequal": "^4.2.0",
Expand Down
4 changes: 2 additions & 2 deletions test/test.inputs.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ test('Directions#inputControl', tt => {
}

tt.test('profiles', (t) => {
setup({ profile: 'cycling' });
setup({ profile: 'mapbox/cycling' });
t.plan(3);

var drivingEl = container.querySelector('#mapbox-directions-profile-driving');
Expand All @@ -31,7 +31,7 @@ test('Directions#inputControl', tt => {
t.equal(cyclingEl.checked, true, 'cycling profile is active');

directions.on('profile', once((e) => {
t.equal(e.profile, 'driving', 'driving profile is set and event emitted');
t.equal(e.profile, 'mapbox/driving', 'driving profile is set and event emitted');
}));

drivingEl.dispatchEvent(changeEvent);
Expand Down

0 comments on commit 9bc90b9

Please sign in to comment.