@@ -143,7 +143,7 @@ describe('filter transforms calc:', function() {
143
143
expect ( out [ 0 ] . x ) . toEqual ( [ 0 , 1 ] ) ;
144
144
expect ( out [ 0 ] . y ) . toEqual ( [ 1 , 2 ] ) ;
145
145
expect ( out [ 0 ] . z ) . toEqual ( [ '2016-10-21' , '2016-12-02' ] ) ;
146
- expect ( out [ 0 ] . transforms [ 0 ] . indexToPoints ) . toEqual ( { 0 : [ 3 ] , 1 : [ 4 ] } ) ;
146
+ expect ( out [ 0 ] . transforms [ 0 ] . _indexToPoints ) . toEqual ( { 0 : [ 3 ] , 1 : [ 4 ] } ) ;
147
147
} ) ;
148
148
149
149
it ( 'should use the calendar from the target attribute if target is a string' , function ( ) {
@@ -262,7 +262,7 @@ describe('filter transforms calc:', function() {
262
262
expect ( out [ 0 ] . x ) . toEqual ( [ - 2 , 2 , 3 ] ) ;
263
263
expect ( out [ 0 ] . y ) . toEqual ( [ 3 , 3 , 1 ] ) ;
264
264
expect ( out [ 0 ] . marker . color ) . toEqual ( [ 0.3 , 0.3 , 0.4 ] ) ;
265
- expect ( out [ 0 ] . transforms [ 0 ] . indexToPoints ) . toEqual ( { 0 : [ 2 ] , 1 : [ 5 ] , 2 : [ 6 ] } ) ;
265
+ expect ( out [ 0 ] . transforms [ 0 ] . _indexToPoints ) . toEqual ( { 0 : [ 2 ] , 1 : [ 5 ] , 2 : [ 6 ] } ) ;
266
266
} ) ;
267
267
268
268
it ( 'filters should handle array on base trace attributes' , function ( ) {
@@ -316,8 +316,8 @@ describe('filter transforms calc:', function() {
316
316
317
317
expect ( out [ 0 ] . x ) . toEqual ( [ 1 , 2 ] ) ;
318
318
expect ( out [ 0 ] . y ) . toEqual ( [ 2 , 3 ] ) ;
319
- expect ( out [ 0 ] . transforms [ 0 ] . indexToPoints ) . toEqual ( { 0 : [ 4 ] , 1 : [ 5 ] , 2 : [ 6 ] } ) ;
320
- expect ( out [ 0 ] . transforms [ 1 ] . indexToPoints ) . toEqual ( { 0 : [ 4 ] , 1 : [ 5 ] } ) ;
319
+ expect ( out [ 0 ] . transforms [ 0 ] . _indexToPoints ) . toEqual ( { 0 : [ 4 ] , 1 : [ 5 ] , 2 : [ 6 ] } ) ;
320
+ expect ( out [ 0 ] . transforms [ 1 ] . _indexToPoints ) . toEqual ( { 0 : [ 4 ] , 1 : [ 5 ] } ) ;
321
321
} ) ;
322
322
323
323
it ( 'filters should chain as AND (case 2)' , function ( ) {
@@ -343,8 +343,8 @@ describe('filter transforms calc:', function() {
343
343
344
344
expect ( out [ 0 ] . x ) . toEqual ( [ 3 ] ) ;
345
345
expect ( out [ 0 ] . y ) . toEqual ( [ 1 ] ) ;
346
- expect ( out [ 0 ] . transforms [ 0 ] . indexToPoints ) . toEqual ( { 0 : [ 4 ] , 1 : [ 5 ] , 2 : [ 6 ] } ) ;
347
- expect ( out [ 0 ] . transforms [ 2 ] . indexToPoints ) . toEqual ( { 0 : [ 6 ] } ) ;
346
+ expect ( out [ 0 ] . transforms [ 0 ] . _indexToPoints ) . toEqual ( { 0 : [ 4 ] , 1 : [ 5 ] , 2 : [ 6 ] } ) ;
347
+ expect ( out [ 0 ] . transforms [ 2 ] . _indexToPoints ) . toEqual ( { 0 : [ 6 ] } ) ;
348
348
} ) ;
349
349
350
350
it ( 'should preserve gaps in data when `preservegaps` is turned on' , function ( ) {
0 commit comments