@@ -2583,7 +2583,8 @@ describe('Profiler', () => {
2583
2583
expect ( Scheduler ) . toHaveYielded ( [ 'Component:false' , 'Component:true' ] ) ;
2584
2584
expect ( onNestedUpdateScheduled ) . toHaveBeenCalledTimes ( 1 ) ;
2585
2585
if ( ReactFeatureFlags . enableSchedulerTracing ) {
2586
- expect ( onNestedUpdateScheduled . mock . calls [ 0 ] [ 0 ] ) . toMatchInteractions ( [
2586
+ expect ( onNestedUpdateScheduled . mock . calls [ 0 ] [ 0 ] ) . toBe ( 'test' ) ;
2587
+ expect ( onNestedUpdateScheduled . mock . calls [ 0 ] [ 1 ] ) . toMatchInteractions ( [
2587
2588
interactionCreation ,
2588
2589
] ) ;
2589
2590
}
@@ -2624,7 +2625,9 @@ describe('Profiler', () => {
2624
2625
2625
2626
expect ( Scheduler ) . toHaveYielded ( [ 'Component:false' , 'Component:true' ] ) ;
2626
2627
expect ( onNestedUpdateScheduledOne ) . toHaveBeenCalledTimes ( 1 ) ;
2628
+ expect ( onNestedUpdateScheduledOne . mock . calls [ 0 ] [ 0 ] ) . toBe ( 'one' ) ;
2627
2629
expect ( onNestedUpdateScheduledTwo ) . toHaveBeenCalledTimes ( 1 ) ;
2630
+ expect ( onNestedUpdateScheduledTwo . mock . calls [ 0 ] [ 0 ] ) . toBe ( 'two' ) ;
2628
2631
expect ( onNestedUpdateScheduledThree ) . not . toHaveBeenCalled ( ) ;
2629
2632
} ) ;
2630
2633
@@ -2817,7 +2820,8 @@ describe('Profiler', () => {
2817
2820
] ) ;
2818
2821
expect ( onNestedUpdateScheduled ) . toHaveBeenCalledTimes ( 1 ) ;
2819
2822
if ( ReactFeatureFlags . enableSchedulerTracing ) {
2820
- expect ( onNestedUpdateScheduled . mock . calls [ 0 ] [ 0 ] ) . toMatchInteractions ( [
2823
+ expect ( onNestedUpdateScheduled . mock . calls [ 0 ] [ 0 ] ) . toBe ( 'test' ) ;
2824
+ expect ( onNestedUpdateScheduled . mock . calls [ 0 ] [ 1 ] ) . toMatchInteractions ( [
2821
2825
interactionCreation ,
2822
2826
] ) ;
2823
2827
}
@@ -2850,7 +2854,8 @@ describe('Profiler', () => {
2850
2854
] ) ;
2851
2855
expect ( onNestedUpdateScheduled ) . toHaveBeenCalledTimes ( 2 ) ;
2852
2856
if ( ReactFeatureFlags . enableSchedulerTracing ) {
2853
- expect ( onNestedUpdateScheduled . mock . calls [ 1 ] [ 0 ] ) . toMatchInteractions ( [
2857
+ expect ( onNestedUpdateScheduled . mock . calls [ 1 ] [ 0 ] ) . toBe ( 'test' ) ;
2858
+ expect ( onNestedUpdateScheduled . mock . calls [ 1 ] [ 1 ] ) . toMatchInteractions ( [
2854
2859
interactionUpdate ,
2855
2860
] ) ;
2856
2861
}
@@ -2898,7 +2903,8 @@ describe('Profiler', () => {
2898
2903
expect ( Scheduler ) . toHaveYielded ( [ 'Component:false' , 'Component:true' ] ) ;
2899
2904
expect ( onNestedUpdateScheduled ) . toHaveBeenCalledTimes ( 1 ) ;
2900
2905
if ( ReactFeatureFlags . enableSchedulerTracing ) {
2901
- expect ( onNestedUpdateScheduled . mock . calls [ 0 ] [ 0 ] ) . toMatchInteractions ( [
2906
+ expect ( onNestedUpdateScheduled . mock . calls [ 0 ] [ 0 ] ) . toBe ( 'test' ) ;
2907
+ expect ( onNestedUpdateScheduled . mock . calls [ 0 ] [ 1 ] ) . toMatchInteractions ( [
2902
2908
interactionCreation ,
2903
2909
] ) ;
2904
2910
}
@@ -2969,7 +2975,8 @@ describe('Profiler', () => {
2969
2975
] ) ;
2970
2976
expect ( onNestedUpdateScheduled ) . toHaveBeenCalledTimes ( 1 ) ;
2971
2977
if ( ReactFeatureFlags . enableSchedulerTracing ) {
2972
- expect ( onNestedUpdateScheduled . mock . calls [ 0 ] [ 0 ] ) . toMatchInteractions ( [
2978
+ expect ( onNestedUpdateScheduled . mock . calls [ 0 ] [ 0 ] ) . toBe ( 'test' ) ;
2979
+ expect ( onNestedUpdateScheduled . mock . calls [ 0 ] [ 1 ] ) . toMatchInteractions ( [
2973
2980
interactionCreation ,
2974
2981
] ) ;
2975
2982
}
0 commit comments