@@ -278,8 +278,8 @@ describe('multiple transforms:', function() {
278
278
} ] ;
279
279
280
280
var mockData2 = [ {
281
- x : [ 1 , 2 , 3 , 4 , 5 ] ,
282
- y : [ 2 , 3 , 1 , 7 , 9 ] ,
281
+ x : [ 1 , 2 , 3 , 4 , 5 ] ,
282
+ y : [ 2 , 3 , 1 , 7 , 9 ] ,
283
283
marker : { size : [ 10 , 20 , 20 , 20 , 10 ] } ,
284
284
transforms : [
285
285
{
@@ -292,8 +292,8 @@ describe('multiple transforms:', function() {
292
292
type : 'aggregate' ,
293
293
groups : 'marker.size' ,
294
294
aggregations : [
295
- { target : 'x' , func : 'sum' } , //20: 6, 10: 5
296
- { target : 'y' , func : 'avg' } //20: 5, 10: 9
295
+ { target : 'x' , func : 'sum' } , // 20: 6, 10: 5
296
+ { target : 'y' , func : 'avg' } // 20: 5, 10: 9
297
297
]
298
298
} ,
299
299
{
@@ -307,13 +307,13 @@ describe('multiple transforms:', function() {
307
307
308
308
afterEach ( destroyGraphDiv ) ;
309
309
310
- fit ( 'Plotly.plot should plot the transform traces - filter|aggregate|filter' , function ( done ) {
310
+ it ( 'Plotly.plot should plot the transform traces - filter|aggregate|filter' , function ( done ) {
311
311
var data = Lib . extendDeep ( [ ] , mockData2 ) ;
312
312
313
313
Plotly . plot ( gd , data ) . then ( function ( ) {
314
314
expect ( gd . data . length ) . toEqual ( 1 ) ;
315
315
316
- // this would be the result if we didn't have a second filter
316
+ // this would be the result if we didn't have a second filter - kept for test case overview
317
317
// expect(gd._fullData[0].x).toEqual([6, 5]);
318
318
// expect(gd._fullData[0].y).toEqual([5, 9]);
319
319
// expect(gd._fullData[0].marker.size).toEqual([20, 10]);
@@ -322,6 +322,10 @@ describe('multiple transforms:', function() {
322
322
expect ( gd . _fullData [ 0 ] . y ) . toEqual ( [ 9 ] ) ;
323
323
expect ( gd . _fullData [ 0 ] . marker . size ) . toEqual ( [ 10 ] ) ;
324
324
325
+ expect ( gd . _fullData [ 0 ] . transforms [ 0 ] . indexToPoints ) . toEqual ( { 0 : [ 1 ] , 1 : [ 3 ] , 2 : [ 4 ] } ) ;
326
+ expect ( gd . _fullData [ 0 ] . transforms [ 1 ] . indexToPoints ) . toEqual ( { 0 : [ 1 , 3 ] , 1 : [ 4 ] } ) ;
327
+ expect ( gd . _fullData [ 0 ] . transforms [ 2 ] . indexToPoints ) . toEqual ( { 0 : [ 4 ] } ) ;
328
+
325
329
done ( ) ;
326
330
} ) ;
327
331
} ) ;
0 commit comments