@@ -249,17 +249,10 @@ describe('ReactDOMFizzServerHydrationWarning', () => {
249
249
Scheduler . log ( normalizeError ( error . message ) ) ;
250
250
} ,
251
251
} ) ;
252
- await expect ( async ( ) => {
253
- await waitForAll ( [
254
- "Hydration failed because the server rendered HTML didn't match the client." ,
255
- 'There was an error while hydrating.' ,
256
- ] ) ;
257
- } ) . toErrorDev (
258
- [
259
- 'An error occurred during hydration. The server HTML was replaced with client content.' ,
260
- ] ,
261
- { withoutStack : 1 } ,
262
- ) ;
252
+ await waitForAll ( [
253
+ "Hydration failed because the server rendered HTML didn't match the client." ,
254
+ 'There was an error while hydrating.' ,
255
+ ] ) ;
263
256
expect ( getVisibleChildren ( container ) ) . toEqual (
264
257
< div >
265
258
< span >
@@ -337,17 +330,10 @@ describe('ReactDOMFizzServerHydrationWarning', () => {
337
330
Scheduler . log ( normalizeError ( error . message ) ) ;
338
331
} ,
339
332
} ) ;
340
- await expect ( async ( ) => {
341
- await waitForAll ( [
342
- "Hydration failed because the server rendered HTML didn't match the client." ,
343
- 'There was an error while hydrating.' ,
344
- ] ) ;
345
- } ) . toErrorDev (
346
- [
347
- 'An error occurred during hydration. The server HTML was replaced with client content.' ,
348
- ] ,
349
- { withoutStack : 1 } ,
350
- ) ;
333
+ await waitForAll ( [
334
+ "Hydration failed because the server rendered HTML didn't match the client." ,
335
+ 'There was an error while hydrating.' ,
336
+ ] ) ;
351
337
expect ( getVisibleChildren ( container ) ) . toEqual (
352
338
< div >
353
339
< span />
@@ -384,17 +370,10 @@ describe('ReactDOMFizzServerHydrationWarning', () => {
384
370
Scheduler . log ( normalizeError ( error . message ) ) ;
385
371
} ,
386
372
} ) ;
387
- await expect ( async ( ) => {
388
- await waitForAll ( [
389
- "Hydration failed because the server rendered HTML didn't match the client." ,
390
- 'There was an error while hydrating.' ,
391
- ] ) ;
392
- } ) . toErrorDev (
393
- [
394
- 'An error occurred during hydration. The server HTML was replaced with client content.' ,
395
- ] ,
396
- { withoutStack : 1 } ,
397
- ) ;
373
+ await waitForAll ( [
374
+ "Hydration failed because the server rendered HTML didn't match the client." ,
375
+ 'There was an error while hydrating.' ,
376
+ ] ) ;
398
377
expect ( getVisibleChildren ( container ) ) . toEqual (
399
378
< div >
400
379
< span >
@@ -434,17 +413,10 @@ describe('ReactDOMFizzServerHydrationWarning', () => {
434
413
Scheduler . log ( normalizeError ( error . message ) ) ;
435
414
} ,
436
415
} ) ;
437
- await expect ( async ( ) => {
438
- await waitForAll ( [
439
- "Hydration failed because the server rendered HTML didn't match the client." ,
440
- 'There was an error while hydrating.' ,
441
- ] ) ;
442
- } ) . toErrorDev (
443
- [
444
- 'An error occurred during hydration. The server HTML was replaced with client content.' ,
445
- ] ,
446
- { withoutStack : 1 } ,
447
- ) ;
416
+ await waitForAll ( [
417
+ "Hydration failed because the server rendered HTML didn't match the client." ,
418
+ 'There was an error while hydrating.' ,
419
+ ] ) ;
448
420
expect ( getVisibleChildren ( container ) ) . toEqual (
449
421
< div >
450
422
< span >
@@ -482,17 +454,10 @@ describe('ReactDOMFizzServerHydrationWarning', () => {
482
454
Scheduler . log ( normalizeError ( error . message ) ) ;
483
455
} ,
484
456
} ) ;
485
- await expect ( async ( ) => {
486
- await waitForAll ( [
487
- "Hydration failed because the server rendered HTML didn't match the client." ,
488
- 'There was an error while hydrating.' ,
489
- ] ) ;
490
- } ) . toErrorDev (
491
- [
492
- 'An error occurred during hydration. The server HTML was replaced with client content.' ,
493
- ] ,
494
- { withoutStack : 1 } ,
495
- ) ;
457
+ await waitForAll ( [
458
+ "Hydration failed because the server rendered HTML didn't match the client." ,
459
+ 'There was an error while hydrating.' ,
460
+ ] ) ;
496
461
expect ( getVisibleChildren ( container ) ) . toEqual (
497
462
< div >
498
463
< span >
@@ -604,17 +569,10 @@ describe('ReactDOMFizzServerHydrationWarning', () => {
604
569
Scheduler . log ( normalizeError ( error . message ) ) ;
605
570
} ,
606
571
} ) ;
607
- await expect ( async ( ) => {
608
- await waitForAll ( [
609
- "Hydration failed because the server rendered HTML didn't match the client." ,
610
- 'There was an error while hydrating.' ,
611
- ] ) ;
612
- } ) . toErrorDev (
613
- [
614
- 'An error occurred during hydration. The server HTML was replaced with client content.' ,
615
- ] ,
616
- { withoutStack : 1 } ,
617
- ) ;
572
+ await waitForAll ( [
573
+ "Hydration failed because the server rendered HTML didn't match the client." ,
574
+ 'There was an error while hydrating.' ,
575
+ ] ) ;
618
576
expect ( getVisibleChildren ( container ) ) . toEqual (
619
577
< div >
620
578
< p > Client and server</ p >
@@ -649,17 +607,10 @@ describe('ReactDOMFizzServerHydrationWarning', () => {
649
607
Scheduler . log ( normalizeError ( error . message ) ) ;
650
608
} ,
651
609
} ) ;
652
- await expect ( async ( ) => {
653
- await waitForAll ( [
654
- "Hydration failed because the server rendered HTML didn't match the client." ,
655
- 'There was an error while hydrating.' ,
656
- ] ) ;
657
- } ) . toErrorDev (
658
- [
659
- 'An error occurred during hydration. The server HTML was replaced with client content.' ,
660
- ] ,
661
- { withoutStack : 1 } ,
662
- ) ;
610
+ await waitForAll ( [
611
+ "Hydration failed because the server rendered HTML didn't match the client." ,
612
+ 'There was an error while hydrating.' ,
613
+ ] ) ;
663
614
expect ( getVisibleChildren ( container ) ) . toEqual (
664
615
< div >
665
616
< p > Client and server</ p >
0 commit comments