@@ -59,13 +59,13 @@ describe('`RequestData` integration', () => {
5959
6060 describe ( 'option conversion' , ( ) => {
6161 it ( 'leaves `ip` and `user` at top level of `include`' , ( ) => {
62- const requestDataEventProcessor = initWithRequestDataIntegrationOptions ( { include : { ip : false , user : true } } ) ;
62+ const requestDataEventProcessor = initWithRequestDataIntegrationOptions ( { include : { ip : false } } ) ;
6363
6464 void requestDataEventProcessor ( event , { } ) ;
6565 expect ( addNormalizedRequestDataToEventSpy ) . toHaveBeenCalled ( ) ;
6666 const passedOptions = addNormalizedRequestDataToEventSpy . mock . calls [ 0 ] ?. [ 3 ] ;
6767
68- expect ( passedOptions ?. include ) . toEqual ( expect . objectContaining ( { ip : false , user : true } ) ) ;
68+ expect ( passedOptions ?. include ) . toEqual ( expect . objectContaining ( { ip : false } ) ) ;
6969 } ) ;
7070
7171 it ( 'moves `true` request keys into `request` include, but omits `false` ones' , async ( ) => {
@@ -80,18 +80,5 @@ describe('`RequestData` integration', () => {
8080 expect ( passedOptions ?. include ?. request ) . toEqual ( expect . arrayContaining ( [ 'data' ] ) ) ;
8181 expect ( passedOptions ?. include ?. request ) . not . toEqual ( expect . arrayContaining ( [ 'cookies' ] ) ) ;
8282 } ) ;
83-
84- it ( 'moves `true` user keys into `user` include, but omits `false` ones' , async ( ) => {
85- const requestDataEventProcessor = initWithRequestDataIntegrationOptions ( {
86- include : { user : { id : true , email : false } } ,
87- } ) ;
88-
89- void requestDataEventProcessor ( event , { } ) ;
90-
91- const passedOptions = addNormalizedRequestDataToEventSpy . mock . calls [ 0 ] ?. [ 3 ] ;
92-
93- expect ( passedOptions ?. include ?. user ) . toEqual ( expect . arrayContaining ( [ 'id' ] ) ) ;
94- expect ( passedOptions ?. include ?. user ) . not . toEqual ( expect . arrayContaining ( [ 'email' ] ) ) ;
95- } ) ;
9683 } ) ;
9784} ) ;
0 commit comments