mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +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, {
|
fetch(input, {
|
||||||
...init,
|
...init,
|
||||||
headers: {
|
headers: {
|
||||||
...init.headers,
|
...init?.headers,
|
||||||
connection: 'keep-alive',
|
connection: 'keep-alive',
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
@@ -68,7 +68,7 @@ describe('Sse (Express Application)', () => {
|
|||||||
fetch(input, {
|
fetch(input, {
|
||||||
...init,
|
...init,
|
||||||
headers: {
|
headers: {
|
||||||
...init.headers,
|
...init?.headers,
|
||||||
connection: 'keep-alive',
|
connection: 'keep-alive',
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ describe('Sse (Fastify Application)', () => {
|
|||||||
fetch(input, {
|
fetch(input, {
|
||||||
...init,
|
...init,
|
||||||
headers: {
|
headers: {
|
||||||
...init.headers,
|
...init?.headers,
|
||||||
connection: 'keep-alive',
|
connection: 'keep-alive',
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
@@ -75,7 +75,7 @@ describe('Sse (Fastify Application)', () => {
|
|||||||
fetch(input, {
|
fetch(input, {
|
||||||
...init,
|
...init,
|
||||||
headers: {
|
headers: {
|
||||||
...init.headers,
|
...init?.headers,
|
||||||
connection: 'keep-alive',
|
connection: 'keep-alive',
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user