@@ -42,17 +42,17 @@ describe('Indicator defaults', function() {
42
42
it ( 'defaults to formatting numbers using SI prefix' , function ( ) {
43
43
var out = _supply ( { type : 'indicator' , mode : 'number+delta' , value : 1 } ) ;
44
44
expect ( out . number . valueformat ) . toBe ( '.3s' ) ;
45
- expect ( out . delta . valueformat ) . toBe ( '+ .3s' ) ;
45
+ expect ( out . delta . valueformat ) . toBe ( '.3s' ) ;
46
46
} ) ;
47
47
48
48
it ( 'defaults to displaying relative changes in percentage' , function ( ) {
49
49
var out = _supply ( { type : 'indicator' , mode : 'delta' , delta : { relative : true } , value : 1 } ) ;
50
- expect ( out . delta . valueformat ) . toBe ( '+ 2%' ) ;
50
+ expect ( out . delta . valueformat ) . toBe ( '2%' ) ;
51
51
} ) ;
52
52
53
53
it ( 'ignores empty valueformat' , function ( ) {
54
54
var out = _supply ( { type : 'indicator' , mode : 'number+delta' , number : { valueformat : '' } , delta : { valueformat : '' } , value : 1 } ) ;
55
- expect ( out . delta . valueformat ) . toBe ( '+ .3s' ) ;
55
+ expect ( out . delta . valueformat ) . toBe ( '.3s' ) ;
56
56
expect ( out . number . valueformat ) . toBe ( '.3s' ) ;
57
57
} ) ;
58
58
@@ -298,11 +298,11 @@ describe('Indicator plot', function() {
298
298
delta : { reference : 200 }
299
299
} ] , { width : 400 , height : 400 } )
300
300
. then ( function ( ) {
301
- assertContent ( gd . _fullData [ 0 ] . delta . increasing . symbol + '+ 20.0' ) ;
301
+ assertContent ( gd . _fullData [ 0 ] . delta . increasing . symbol + '20.0' ) ;
302
302
return Plotly . restyle ( gd , 'delta.relative' , true ) ;
303
303
} )
304
304
. then ( function ( ) {
305
- assertContent ( gd . _fullData [ 0 ] . delta . increasing . symbol + '+ 10%' ) ;
305
+ assertContent ( gd . _fullData [ 0 ] . delta . increasing . symbol + '10%' ) ;
306
306
return Plotly . restyle ( gd , 'delta.valueformat' , '.3f' ) ;
307
307
} )
308
308
. then ( function ( ) {
0 commit comments