@@ -2265,7 +2265,7 @@ describe('Test plot api', function() {
2265
2265
expect ( gd . data [ 0 ] . scl ) . toBe ( undefined ) ;
2266
2266
} ) ;
2267
2267
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 ( ) {
2269
2269
var data = [ {
2270
2270
type : 'heatmap' ,
2271
2271
colorscale : 'Greens' ,
@@ -2274,7 +2274,7 @@ describe('Test plot api', function() {
2274
2274
2275
2275
Plotly . plot ( gd , data ) ;
2276
2276
expect ( gd . data [ 0 ] . colorscale ) . toBe ( 'Greens' ) ;
2277
- expect ( gd . data [ 0 ] . scl ) . toBe ( undefined ) ;
2277
+ expect ( gd . data [ 0 ] . scl ) . not . toBe ( undefined ) ;
2278
2278
} ) ;
2279
2279
2280
2280
it ( 'should rename \'reversescl\' to \'reversescale\' when colorscale is not defined' , function ( ) {
@@ -2288,7 +2288,7 @@ describe('Test plot api', function() {
2288
2288
expect ( gd . data [ 0 ] . reversescl ) . toBe ( undefined ) ;
2289
2289
} ) ;
2290
2290
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 ( ) {
2292
2292
var data = [ {
2293
2293
type : 'heatmap' ,
2294
2294
reversescale : true ,
@@ -2297,7 +2297,7 @@ describe('Test plot api', function() {
2297
2297
2298
2298
Plotly . plot ( gd , data ) ;
2299
2299
expect ( gd . data [ 0 ] . reversescale ) . toBe ( true ) ;
2300
- expect ( gd . data [ 0 ] . reversescl ) . toBe ( undefined ) ;
2300
+ expect ( gd . data [ 0 ] . reversescl ) . not . toBe ( undefined ) ;
2301
2301
} ) ;
2302
2302
2303
2303
it ( 'should rename \'YIGnBu\' colorscales YlGnBu (2dMap case)' , function ( ) {
0 commit comments