File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -505,7 +505,7 @@ describe('FixedSizeTree', () => {
505505 // children. But it sill will set `isOpen` to true.
506506 'foo-6' : true ,
507507 } ) ;
508- component . update ( ) ;
508+ component . update ( ) ; // Update the wrapper to get the latest changes
509509
510510 const receivedRecords = extractReceivedRecords (
511511 component . find ( FixedSizeList ) ,
@@ -538,6 +538,7 @@ describe('FixedSizeTree', () => {
538538
539539 // @ts -expect-error: Test for non-typescript code.
540540 await treeInstance . recomputeTree ( '4' ) ;
541+ component . update ( ) ; // Update the wrapper to get the latest changes
541542
542543 expect ( extractReceivedRecords ( component . find ( FixedSizeList ) ) ) . toEqual (
543544 originalRecords ,
@@ -552,6 +553,7 @@ describe('FixedSizeTree', () => {
552553 await treeInstance . recomputeTree ( {
553554 'foo-42' : false ,
554555 } ) ;
556+ component . update ( ) ; // Update the wrapper to get the latest changes
555557
556558 expect ( extractReceivedRecords ( component . find ( FixedSizeList ) ) ) . toEqual (
557559 originalRecords ,
Original file line number Diff line number Diff line change @@ -534,7 +534,7 @@ describe('VariableSizeTree', () => {
534534 // children. But it sill will set `isOpen` to true.
535535 'foo-6' : true ,
536536 } ) ;
537- component . update ( ) ;
537+ component . update ( ) ; // Update the wrapper to get the latest changes
538538
539539 const receivedRecords = extractReceivedRecords (
540540 component . find ( VariableSizeList ) ,
@@ -567,6 +567,7 @@ describe('VariableSizeTree', () => {
567567
568568 // @ts -expect-error: Test for non-typescript code.
569569 await treeInstance . recomputeTree ( '4' ) ;
570+ component . update ( ) ; // Update the wrapper to get the latest changes
570571
571572 expect (
572573 extractReceivedRecords ( component . find ( VariableSizeList ) ) ,
@@ -581,6 +582,7 @@ describe('VariableSizeTree', () => {
581582 await treeInstance . recomputeTree ( {
582583 'foo-42' : false ,
583584 } ) ;
585+ component . update ( ) ; // Update the wrapper to get the latest changes
584586
585587 expect (
586588 extractReceivedRecords ( component . find ( VariableSizeList ) ) ,
You can’t perform that action at this time.
0 commit comments