We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0f0247 commit 85a8e7dCopy full SHA for 85a8e7d
test/jasmine/tests/mapbox_test.js
@@ -13,6 +13,7 @@ var customMatchers = require('../assets/custom_matchers');
13
14
var MAPBOX_ACCESS_TOKEN = require('@build/credentials.json').MAPBOX_ACCESS_TOKEN;
15
var TRANSITION_DELAY = 500;
16
+var MOUSE_DELAY = 100;
17
18
var noop = function() {};
19
@@ -763,15 +764,13 @@ describe('mapbox plots', function() {
763
764
}
765
766
function _mouseEvent(type, pos, cb) {
- var DELAY = 100;
767
-
768
return new Promise(function(resolve) {
769
mouseEvent(type, pos[0], pos[1]);
770
771
setTimeout(function() {
772
cb();
773
resolve();
774
- }, DELAY);
+ }, MOUSE_DELAY);
775
});
776
777
0 commit comments