Skip to content

Commit 31f99c3

Browse files
committed
Update useSuspenseSelect tests
1 parent 7a5e4b1 commit 31f99c3

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • packages/data/src/components/use-select/test

packages/data/src/components/use-select/test/suspense.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,10 @@ describe( 'useSuspenseSelect', () => {
110110
render( <App /> );
111111
await screen.findByLabelText( 'loaded' );
112112

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

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

232232
// TODO: Understand what's going on here. This has to be reverted.
233-
expect( FastUI ).toHaveBeenCalledTimes( 3 );
234-
expect( SlowUI ).toHaveBeenCalledTimes( 2 );
233+
expect( FastUI ).toHaveBeenCalledTimes( 4 );
234+
expect( SlowUI ).toHaveBeenCalledTimes( 3 );
235235
} );
236236
} );

0 commit comments

Comments
 (0)