@@ -3,29 +3,29 @@ var Annotations = require('@src/components/annotations');
3
3
var Dates = require ( '@src/lib/dates' ) ;
4
4
5
5
describe ( 'Test annotations' , function ( ) {
6
- 'use strict' ;
6
+ 'use strict' ;
7
7
8
- describe ( 'supplyLayoutDefaults' , function ( ) {
9
- it ( 'should default to not use absolute arrow tail' , function ( ) {
10
- var annotationDefaults = { } ;
11
- annotationDefaults . _has = function ( ) { return false } ;
8
+ describe ( 'supplyLayoutDefaults' , function ( ) {
9
+ it ( 'should default to not use absolute arrow tail' , function ( ) {
10
+ var annotationDefaults = { } ;
11
+ annotationDefaults . _has = function ( ) { return false ; } ;
12
12
13
- Annotations . supplyLayoutDefaults ( { annotations : [ { showarrow : true , arrowhead : 2 } ] } , annotationDefaults ) ;
13
+ Annotations . supplyLayoutDefaults ( { annotations : [ { showarrow : true , arrowhead : 2 } ] } , annotationDefaults ) ;
14
14
15
- expect ( annotationDefaults . annotations [ 0 ] . absolutetail ) . toBe ( false ) ;
16
- } ) ;
15
+ expect ( annotationDefaults . annotations [ 0 ] . absolutetail ) . toBe ( false ) ;
16
+ } ) ;
17
17
18
- it ( 'should convert ax/ay date coordinates to milliseconds if absolutetail is true' , function ( ) {
19
- var annotationOut = { xaxis : { type : 'date' , range : [ '2000-01-01' , '2016-01-01' ] } } ;
20
- annotationOut . _has = function ( ) { return false } ;
18
+ it ( 'should convert ax/ay date coordinates to milliseconds if absolutetail is true' , function ( ) {
19
+ var annotationOut = { xaxis : { type : 'date' , range : [ '2000-01-01' , '2016-01-01' ] } } ;
20
+ annotationOut . _has = function ( ) { return false ; } ;
21
21
22
- var annotationIn = {
23
- annotations : [ { showarrow : true , absolutetail : true , x : '2008-07-01' , ax : '2004-07-01' , y : 0 , ay : 50 } ]
24
- } ;
22
+ var annotationIn = {
23
+ annotations : [ { showarrow : true , absolutetail : true , x : '2008-07-01' , ax : '2004-07-01' , y : 0 , ay : 50 } ]
24
+ } ;
25
25
26
- Annotations . supplyLayoutDefaults ( annotationIn , annotationOut ) ;
26
+ Annotations . supplyLayoutDefaults ( annotationIn , annotationOut ) ;
27
27
28
- expect ( annotationIn . annotations [ 0 ] . ax ) . toEqual ( Dates . dateTime2ms ( '2004-07-01' ) ) ;
28
+ expect ( annotationIn . annotations [ 0 ] . ax ) . toEqual ( Dates . dateTime2ms ( '2004-07-01' ) ) ;
29
+ } ) ;
29
30
} ) ;
30
- } ) ;
31
31
} ) ;
0 commit comments