@@ -174,12 +174,6 @@ describe('sendFeedback', () => {
174174 trace : {
175175 span_id : expect . any ( String ) ,
176176 trace_id : expect . any ( String ) ,
177- data : {
178- 'sentry.origin' : 'manual' ,
179- 'sentry.sample_rate' : 1 ,
180- 'sentry.source' : 'custom' ,
181- } ,
182- origin : 'manual' ,
183177 } ,
184178 feedback : {
185179 contact_email :
'[email protected] ' , @@ -344,32 +338,35 @@ describe('sendFeedback', () => {
344338 const attachment1 = new Uint8Array ( [ 1 , 2 , 3 , 4 , 5 ] ) ;
345339 const attachment2 = new Uint8Array ( [ 6 , 7 , 8 , 9 ] ) ;
346340
347- const promise = sendFeedback ( {
348- name : 'doe' ,
349- 350- message : 'mi' ,
351- attachments : [
352- {
353- data : attachment1 ,
354- filename : 'test-file.txt' ,
355- } ,
356- {
357- data : attachment2 ,
358- filename : 'test-file2.txt' ,
359- } ,
360- ] ,
361- } ) ;
341+ const promise = sendFeedback (
342+ {
343+ name : 'doe' ,
344+ 345+ message : 'mi' ,
346+ } ,
347+ {
348+ attachments : [
349+ {
350+ data : attachment1 ,
351+ filename : 'test-file.txt' ,
352+ } ,
353+ {
354+ data : attachment2 ,
355+ filename : 'test-file2.txt' ,
356+ } ,
357+ ] ,
358+ } ,
359+ ) ;
362360
363361 expect ( promise ) . toBeInstanceOf ( Promise ) ;
364362
365363 const eventId = await promise ;
366364
367365 expect ( typeof eventId ) . toEqual ( 'string' ) ;
368- expect ( mockTransport ) . toHaveBeenCalledTimes ( 2 ) ;
366+ expect ( mockTransport ) . toHaveBeenCalledTimes ( 1 ) ;
369367
370- const [ feedbackEnvelope , attachmentEnvelope ] = mockTransport . mock . calls ;
368+ const [ feedbackEnvelope ] = mockTransport . mock . calls ;
371369
372- // Feedback event is sent normally in one envelope
373370 expect ( feedbackEnvelope [ 0 ] ) . toEqual ( [
374371 {
375372 event_id : eventId ,
@@ -405,16 +402,6 @@ describe('sendFeedback', () => {
405402 type : 'feedback' ,
406403 } ,
407404 ] ,
408- ] ,
409- ] ) ;
410-
411- // Attachments are sent in separate envelope
412- expect ( attachmentEnvelope [ 0 ] ) . toEqual ( [
413- {
414- event_id : eventId ,
415- sent_at : expect . any ( String ) ,
416- } ,
417- [
418405 [
419406 {
420407 type : 'attachment' ,
0 commit comments