mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 15:08:37 +00:00
test: add optional chaining to eventsource init payload
This commit is contained in:
@@ -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',
|
||||
},
|
||||
}),
|
||||
|
||||
@@ -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',
|
||||
},
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user