test: add optional chaining to eventsource init payload

This commit is contained in:
Kamil Myśliwiec
2025-01-07 15:39:00 +01:00
parent 03ad47a881
commit 0094e0df49
2 changed files with 4 additions and 4 deletions

View File

@@ -24,7 +24,7 @@ describe('Sse (Express Application)', () => {
fetch(input, {
...init,
headers: {
...init.headers,
...init?.headers,
connection: 'keep-alive',
},
}),
@@ -68,7 +68,7 @@ describe('Sse (Express Application)', () => {
fetch(input, {
...init,
headers: {
...init.headers,
...init?.headers,
connection: 'keep-alive',
},
}),

View File

@@ -29,7 +29,7 @@ describe('Sse (Fastify Application)', () => {
fetch(input, {
...init,
headers: {
...init.headers,
...init?.headers,
connection: 'keep-alive',
},
}),
@@ -75,7 +75,7 @@ describe('Sse (Fastify Application)', () => {
fetch(input, {
...init,
headers: {
...init.headers,
...init?.headers,
connection: 'keep-alive',
},
}),