Skip to content

Commit 49d9c7e

Browse files
MFedMFed
MFed
authored and
MFed
committed
Trying to fix tests for absolutetail.
1 parent a2ecd65 commit 49d9c7e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/jasmine/tests/annotations_test.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
var Plots = require('@src/plots/plots');
21
var Annotations = require('@src/components/annotations');
32

4-
53
describe('Test annotations', function() {
64
'use strict';
75

86
describe('supplyLayoutDefaults', function() {
97
it('should default to not use absolute arrow tail', function() {
108
var annotationDefaults = {};
11-
annotationDefaults._has = Plots._hasPlotType.bind(annotationDefaults);
9+
annotationDefaults._has = function() { return false };
1210

1311
Annotations.supplyLayoutDefaults({ annotations: [{ showarrow: true, arrowhead: 2}] }, annotationDefaults);
1412

@@ -17,7 +15,7 @@ describe('Test annotations', function() {
1715

1816
it('should convert ax/ay date coordinates to milliseconds if absolutetail is true', function() {
1917
var annotationOut = { xaxis: { type: 'date', range: ['2000-01-01', '2016-01-01'] }};
20-
annotationOut._has = Plots._hasPlotType.bind(annotationOut);
18+
annotationOut._has = function() { return false };
2119

2220
var annotationIn = {
2321
annotations: [{ showarrow: true, absolutetail: true, x: '2008-07-01', ax: '2004-07-01', y: 0, ay: 50}]

0 commit comments

Comments
 (0)