Skip to content

Commit

Permalink
Update useSuspenseSelect tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tyxla committed Dec 6, 2024
1 parent 338e7af commit d037aad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/data/src/components/use-select/test/suspense.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@ describe( 'useSuspenseSelect', () => {
render( <App /> );
await screen.findByLabelText( 'loaded' );

// Verify there were 3 attempts to render. Suspended twice because of
// Verify there were 4 attempts to render. Suspended twice because of
// `getToken` and `getData` selectors not being resolved, and then finally
// rendered after all data got loaded.
expect( attempts ).toBe( 3 );
expect( attempts ).toBe( 4 );
expect( renders ).toBe( 1 );
} );

Expand Down Expand Up @@ -230,7 +230,7 @@ describe( 'useSuspenseSelect', () => {
expect( slowLabel ).toHaveTextContent( 'slow' );

// TODO: Understand what's going on here. This has to be reverted.
expect( FastUI ).toHaveBeenCalledTimes( 3 );
expect( SlowUI ).toHaveBeenCalledTimes( 2 );
expect( FastUI ).toHaveBeenCalledTimes( 4 );
expect( SlowUI ).toHaveBeenCalledTimes( 3 );
} );
} );

0 comments on commit d037aad

Please sign in to comment.