Skip to content

Commit 85a8e7d

Browse files
committed
lint: move MOUSE_DELAY to suite scope
1 parent f0f0247 commit 85a8e7d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/jasmine/tests/mapbox_test.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ var customMatchers = require('../assets/custom_matchers');
1313

1414
var MAPBOX_ACCESS_TOKEN = require('@build/credentials.json').MAPBOX_ACCESS_TOKEN;
1515
var TRANSITION_DELAY = 500;
16+
var MOUSE_DELAY = 100;
1617

1718
var noop = function() {};
1819

@@ -763,15 +764,13 @@ describe('mapbox plots', function() {
763764
}
764765

765766
function _mouseEvent(type, pos, cb) {
766-
var DELAY = 100;
767-
768767
return new Promise(function(resolve) {
769768
mouseEvent(type, pos[0], pos[1]);
770769

771770
setTimeout(function() {
772771
cb();
773772
resolve();
774-
}, DELAY);
773+
}, MOUSE_DELAY);
775774
});
776775
}
777776

0 commit comments

Comments
 (0)