@@ -18,24 +18,28 @@ describe('Test scatterpolar trace defaults:', function() {
18
18
ScatterPolar . supplyDefaults ( traceIn , traceOut , '#444' , layout || { } ) ;
19
19
}
20
20
21
- it ( 'should truncate *r* when longer than *theta*' , function ( ) {
21
+ it ( 'should not truncate *r* when longer than *theta*' , function ( ) {
22
+ // this is handled at the calc step now via _length.
22
23
_supply ( {
23
24
r : [ 1 , 2 , 3 , 4 , 5 ] ,
24
25
theta : [ 1 , 2 , 3 ]
25
26
} ) ;
26
27
27
- expect ( traceOut . r ) . toEqual ( [ 1 , 2 , 3 ] ) ;
28
+ expect ( traceOut . r ) . toEqual ( [ 1 , 2 , 3 , 4 , 5 ] ) ;
28
29
expect ( traceOut . theta ) . toEqual ( [ 1 , 2 , 3 ] ) ;
30
+ expect ( traceOut . _length ) . toBe ( 3 ) ;
29
31
} ) ;
30
32
31
- it ( 'should truncate *theta* when longer than *r*' , function ( ) {
33
+ it ( 'should not truncate *theta* when longer than *r*' , function ( ) {
34
+ // this is handled at the calc step now via _length.
32
35
_supply ( {
33
36
r : [ 1 , 2 , 3 ] ,
34
37
theta : [ 1 , 2 , 3 , 4 , 5 ]
35
38
} ) ;
36
39
37
40
expect ( traceOut . r ) . toEqual ( [ 1 , 2 , 3 ] ) ;
38
- expect ( traceOut . theta ) . toEqual ( [ 1 , 2 , 3 ] ) ;
41
+ expect ( traceOut . theta ) . toEqual ( [ 1 , 2 , 3 , 4 , 5 ] ) ;
42
+ expect ( traceOut . _length ) . toBe ( 3 ) ;
39
43
} ) ;
40
44
} ) ;
41
45
0 commit comments