File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/react-server-dom-webpack/src/__tests__ Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -623,15 +623,15 @@ describe('ReactFlightDOM', () => {
623623 ) ;
624624 } ) ;
625625
626- it ( 'throws when await a client module prop of client exports' , ( ) => {
626+ it ( 'throws when await a client module prop of client exports' , async ( ) => {
627627 const ClientModule = clientExports ( {
628628 Component : { deep : 'thing' } ,
629629 } ) ;
630630 async function awaitExport ( ) {
631- const mod = await ClientModule
632- return await Promise . resolve ( mod . Component )
631+ const mod = await ClientModule ;
632+ return await Promise . resolve ( mod . Component ) ;
633633 }
634- expect ( awaitExport ) . toThrowError (
634+ await expect ( awaitExport ( ) ) . rejects . toThrowError (
635635 `Cannot await or return from a thenable. ` +
636636 `You cannot await a client module from a server component.` ,
637637 ) ;
You can’t perform that action at this time.
0 commit comments