@@ -42,17 +42,17 @@ describe('Indicator defaults', function() {
4242 it ( 'defaults to formatting numbers using SI prefix' , function ( ) {
4343 var out = _supply ( { type : 'indicator' , mode : 'number+delta' , value : 1 } ) ;
4444 expect ( out . number . valueformat ) . toBe ( '.3s' ) ;
45- expect ( out . delta . valueformat ) . toBe ( '+ .3s' ) ;
45+ expect ( out . delta . valueformat ) . toBe ( '.3s' ) ;
4646 } ) ;
4747
4848 it ( 'defaults to displaying relative changes in percentage' , function ( ) {
4949 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%' ) ;
5151 } ) ;
5252
5353 it ( 'ignores empty valueformat' , function ( ) {
5454 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' ) ;
5656 expect ( out . number . valueformat ) . toBe ( '.3s' ) ;
5757 } ) ;
5858
@@ -298,11 +298,11 @@ describe('Indicator plot', function() {
298298 delta : { reference : 200 }
299299 } ] , { width : 400 , height : 400 } )
300300 . then ( function ( ) {
301- assertContent ( gd . _fullData [ 0 ] . delta . increasing . symbol + '+ 20.0' ) ;
301+ assertContent ( gd . _fullData [ 0 ] . delta . increasing . symbol + '20.0' ) ;
302302 return Plotly . restyle ( gd , 'delta.relative' , true ) ;
303303 } )
304304 . then ( function ( ) {
305- assertContent ( gd . _fullData [ 0 ] . delta . increasing . symbol + '+ 10%' ) ;
305+ assertContent ( gd . _fullData [ 0 ] . delta . increasing . symbol + '10%' ) ;
306306 return Plotly . restyle ( gd , 'delta.valueformat' , '.3f' ) ;
307307 } )
308308 . then ( function ( ) {
0 commit comments