@@ -325,7 +325,7 @@ describe('Test colorscale:', function() {
325
325
z = [ [ 0 , - 1.5 ] , [ - 2 , - 10 ] ] ;
326
326
calcColorscale ( trace , z , '' , 'z' ) ;
327
327
expect ( trace . autocolorscale ) . toBe ( true ) ;
328
- expect ( trace . colorscale [ 5 ] ) . toEqual ( [ 1 , 'rgb(220, 220, 220)' ] ) ;
328
+ expect ( trace . colorscale [ 5 ] ) . toEqual ( [ 1 , 'rgb(220,220,220)' ] ) ;
329
329
} ) ;
330
330
331
331
it ( 'should be Blues when the only numerical z <= -0.5' , function ( ) {
@@ -338,7 +338,7 @@ describe('Test colorscale:', function() {
338
338
z = [ [ undefined , undefined ] , [ - 0.5 , undefined ] ] ;
339
339
calcColorscale ( trace , z , '' , 'z' ) ;
340
340
expect ( trace . autocolorscale ) . toBe ( true ) ;
341
- expect ( trace . colorscale [ 5 ] ) . toEqual ( [ 1 , 'rgb(220, 220, 220)' ] ) ;
341
+ expect ( trace . colorscale [ 5 ] ) . toEqual ( [ 1 , 'rgb(220,220,220)' ] ) ;
342
342
} ) ;
343
343
344
344
it ( 'should be Reds when the only numerical z >= 0.5' , function ( ) {
@@ -351,7 +351,7 @@ describe('Test colorscale:', function() {
351
351
z = [ [ undefined , undefined ] , [ 0.5 , undefined ] ] ;
352
352
calcColorscale ( trace , z , '' , 'z' ) ;
353
353
expect ( trace . autocolorscale ) . toBe ( true ) ;
354
- expect ( trace . colorscale [ 0 ] ) . toEqual ( [ 0 , 'rgb(220, 220, 220)' ] ) ;
354
+ expect ( trace . colorscale [ 0 ] ) . toEqual ( [ 0 , 'rgb(220,220,220)' ] ) ;
355
355
} ) ;
356
356
357
357
it ( 'should be reverse the auto scale when reversescale is true' , function ( ) {
@@ -365,7 +365,8 @@ describe('Test colorscale:', function() {
365
365
z = [ [ undefined , undefined ] , [ 0.5 , undefined ] ] ;
366
366
calcColorscale ( trace , z , '' , 'z' ) ;
367
367
expect ( trace . autocolorscale ) . toBe ( true ) ;
368
- expect ( trace . colorscale [ trace . colorscale . length - 1 ] ) . toEqual ( [ 1 , 'rgb(220, 220, 220)' ] ) ;
368
+ expect ( trace . colorscale [ trace . colorscale . length - 1 ] )
369
+ . toEqual ( [ 1 , 'rgb(220,220,220)' ] ) ;
369
370
} ) ;
370
371
371
372
} ) ;
0 commit comments