File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
packages/shared/common/__tests__/internal/events Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -135,6 +135,7 @@ describe('given an event sender', () => {
135135 body : JSON . stringify ( testEventData1 ) ,
136136 headers : analyticsHeaders ( uuid ) ,
137137 method : 'POST' ,
138+ keepalive : true ,
138139 } ) ;
139140 } ) ;
140141
@@ -151,6 +152,7 @@ describe('given an event sender', () => {
151152 body : JSON . stringify ( testEventData1 ) ,
152153 headers : analyticsHeaders ( uuid ) ,
153154 method : 'POST' ,
155+ keepalive : true ,
154156 } ) ;
155157 expect ( mockFetch ) . toHaveBeenNthCalledWith (
156158 2 ,
@@ -159,6 +161,7 @@ describe('given an event sender', () => {
159161 body : JSON . stringify ( testEventData2 ) ,
160162 headers : diagnosticHeaders ,
161163 method : 'POST' ,
164+ keepalive : true ,
162165 } ,
163166 ) ;
164167 } ) ;
You can’t perform that action at this time.
0 commit comments