@@ -59,13 +59,13 @@ describe('`RequestData` integration', () => {
59
59
60
60
describe ( 'option conversion' , ( ) => {
61
61
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 } } ) ;
63
63
64
64
void requestDataEventProcessor ( event , { } ) ;
65
65
expect ( addNormalizedRequestDataToEventSpy ) . toHaveBeenCalled ( ) ;
66
66
const passedOptions = addNormalizedRequestDataToEventSpy . mock . calls [ 0 ] ?. [ 3 ] ;
67
67
68
- expect ( passedOptions ?. include ) . toEqual ( expect . objectContaining ( { ip : false , user : true } ) ) ;
68
+ expect ( passedOptions ?. include ) . toEqual ( expect . objectContaining ( { ip : false } ) ) ;
69
69
} ) ;
70
70
71
71
it ( 'moves `true` request keys into `request` include, but omits `false` ones' , async ( ) => {
@@ -80,18 +80,5 @@ describe('`RequestData` integration', () => {
80
80
expect ( passedOptions ?. include ?. request ) . toEqual ( expect . arrayContaining ( [ 'data' ] ) ) ;
81
81
expect ( passedOptions ?. include ?. request ) . not . toEqual ( expect . arrayContaining ( [ 'cookies' ] ) ) ;
82
82
} ) ;
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
- } ) ;
96
83
} ) ;
97
84
} ) ;
0 commit comments