Skip to content

Commit bf794f1

Browse files
committed
fixup tests
1 parent a95bac3 commit bf794f1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

test/jasmine/assets/double_click.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
var click = require('./click');
22
var getNodeCoords = require('./get_node_coords');
3-
var DBLCLICKDELAY = require('../../../src/constants/interactions').DBLCLICKDELAY;
3+
var DBLCLICKDELAY = require('@src/plot_api/plot_config').dfltConfig.doubleClickDelay;
44

55
/*
66
* Double click on a point.

test/jasmine/tests/dragelement_test.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ describe('dragElement', function() {
1919
this.gd._fullLayout = {
2020
_hoverlayer: d3.select(this.hoverlayer)
2121
};
22+
this.gd._context = {
23+
doubleClickDelay: 300
24+
};
2225
this.element.innerHTML = 'drag element';
2326

2427
this.gd.appendChild(this.element);

0 commit comments

Comments
 (0)