Skip to content

Commit 1ab7c0f

Browse files
committed
Account for keepalive in common tests.
1 parent 5d529f1 commit 1ab7c0f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/shared/common/__tests__/internal/events/EventSender.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)