@@ -2265,7 +2265,7 @@ describe('Test plot api', function() {
22652265 expect ( gd . data [ 0 ] . scl ) . toBe ( undefined ) ;
22662266 } ) ;
22672267
2268- it ( 'should not rename \'scl\' to \'colorscale\' when colorscale is defined ' , function ( ) {
2268+ it ( 'should not delete rename \'scl\' to \'colorscale\' when colorscale is defined ' , function ( ) {
22692269 var data = [ {
22702270 type : 'heatmap' ,
22712271 colorscale : 'Greens' ,
@@ -2274,7 +2274,7 @@ describe('Test plot api', function() {
22742274
22752275 Plotly . plot ( gd , data ) ;
22762276 expect ( gd . data [ 0 ] . colorscale ) . toBe ( 'Greens' ) ;
2277- expect ( gd . data [ 0 ] . scl ) . toBe ( undefined ) ;
2277+ expect ( gd . data [ 0 ] . scl ) . not . toBe ( undefined ) ;
22782278 } ) ;
22792279
22802280 it ( 'should rename \'reversescl\' to \'reversescale\' when colorscale is not defined' , function ( ) {
@@ -2288,7 +2288,7 @@ describe('Test plot api', function() {
22882288 expect ( gd . data [ 0 ] . reversescl ) . toBe ( undefined ) ;
22892289 } ) ;
22902290
2291- it ( 'should not rename \'scl \' to \'colorscale \' when colorscale is defined ' , function ( ) {
2291+ it ( 'should not delete & rename \'reversescl \' to \'reversescale \' when colorscale is defined' , function ( ) {
22922292 var data = [ {
22932293 type : 'heatmap' ,
22942294 reversescale : true ,
@@ -2297,7 +2297,7 @@ describe('Test plot api', function() {
22972297
22982298 Plotly . plot ( gd , data ) ;
22992299 expect ( gd . data [ 0 ] . reversescale ) . toBe ( true ) ;
2300- expect ( gd . data [ 0 ] . reversescl ) . toBe ( undefined ) ;
2300+ expect ( gd . data [ 0 ] . reversescl ) . not . toBe ( undefined ) ;
23012301 } ) ;
23022302
23032303 it ( 'should rename \'YIGnBu\' colorscales YlGnBu (2dMap case)' , function ( ) {
0 commit comments