@@ -15,20 +15,14 @@ describe('multiValued Numeric', () => {
15
15
16
16
const rangeInputs = mount (
17
17
< TestEditor { ...{ ...fixtureProps , onUpdate : jest . fn ( ) , plotly} } >
18
- < AxesNumeric attr = "range[0]" defaultAxesTarget = "xaxis" />
19
- < AxesNumeric attr = "range[0]" defaultAxesTarget = "yaxis" />
20
- < AxesNumeric attr = "range[0]" defaultAxesTarget = "allaxes" />
18
+ < AxesNumeric attr = "range[0]" />
21
19
</ TestEditor >
22
20
) . find ( NumericInput ) ;
23
21
24
- expect ( rangeInputs . length ) . toBe ( 3 ) ;
22
+ expect ( rangeInputs . length ) . toBe ( 1 ) ;
25
23
26
- const xaxisRangeInput = rangeInputs . at ( 0 ) ;
27
- const yaxisRangeInput = rangeInputs . at ( 1 ) ;
28
- const allaxisRangeInput = rangeInputs . at ( 2 ) ;
24
+ const allaxisRangeInput = rangeInputs . at ( 0 ) ;
29
25
30
- expect ( xaxisRangeInput . prop ( 'value' ) ) . toBe ( 0 ) ;
31
- expect ( yaxisRangeInput . prop ( 'value' ) ) . toBe ( - 1 ) ;
32
26
expect ( allaxisRangeInput . prop ( 'value' ) ) . toBe ( '' ) ;
33
27
expect ( allaxisRangeInput . prop ( 'placeholder' ) ) . toBe (
34
28
MULTI_VALUED_PLACEHOLDER
@@ -45,7 +39,7 @@ describe('multiValued Numeric', () => {
45
39
46
40
mount (
47
41
< TestEditor { ...{ ...fixtureProps , beforeUpdateLayout, plotly} } >
48
- < AxesNumeric attr = "range[0]" defaultAxesTarget = "allaxes" />
42
+ < AxesNumeric attr = "range[0]" />
49
43
</ TestEditor >
50
44
)
51
45
. find ( '.js-numeric-increase' )
0 commit comments