Skip to content

Commit

Permalink
Fix a couple tests for controlled RangeControl
Browse files Browse the repository at this point in the history
  • Loading branch information
stokesman committed May 2, 2022
1 parent 38c0158 commit 8930905
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/components/src/range-control/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe.each( [
[ 'uncontrolled', RangeControl ],
[ 'controlled', ControlledRangeControl ],
] )( 'RangeControl %s', ( ...modeAndComponent ) => {
const [ , Component ] = modeAndComponent;
const [ mode, Component ] = modeAndComponent;

describe( '#render()', () => {
it( 'should trigger change callback with numeric value', () => {
Expand Down Expand Up @@ -306,6 +306,7 @@ describe.each( [
allowReset={ true }
onChange={ spy }
{ ...propsForReset }
value={ mode === 'controlled' ? 89 : undefined }
/>
);

Expand All @@ -328,6 +329,7 @@ describe.each( [
max={ 100 }
allowReset={ true }
resetFallbackValue={ undefined }
value={ mode === 'controlled' ? 89 : undefined }
/>
);

Expand Down

0 comments on commit 8930905

Please sign in to comment.