Skip to content

Commit

Permalink
fix: fix invalid types
Browse files Browse the repository at this point in the history
  • Loading branch information
Harminder Virk authored and Harminder Virk committed Mar 29, 2024
1 parent 647d400 commit bf4f0bb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"@types/supertest": "^6.0.2",
"@types/type-is": "^1.6.6",
"@types/vary": "^1.1.3",
"@vinejs/vine": "^1.7.1",
"@vinejs/vine": "^2.0.0",
"autocannon": "^7.14.0",
"c8": "^9.1.0",
"cross-env": "^7.0.3",
Expand All @@ -87,7 +87,7 @@
"github-label-sync": "^2.3.1",
"http-status-codes": "^2.3.0",
"husky": "^9.0.10",
"np": "^9.2.0",
"np": "^10.0.2",
"pem": "^1.14.8",
"prettier": "^3.2.4",
"reflect-metadata": "^0.2.1",
Expand All @@ -107,7 +107,7 @@
"content-disposition": "^0.5.4",
"cookie": "^0.6.0",
"destroy": "^1.2.0",
"encodeurl": "^1.0.2",
"encodeurl": "^2.0.0",
"etag": "^1.8.1",
"fresh": "^0.5.2",
"mime-types": "^2.1.35",
Expand Down
10 changes: 5 additions & 5 deletions tests/response.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1090,7 +1090,7 @@ test.group('Response', (group) => {
})

const response = await supertest(url).get('/').expect(200)
const cookies = response.get('Set-Cookie').map((cookie: string) => {
const cookies = response.get('Set-Cookie')!.map((cookie: string) => {
const [value, ...options] = cookie.split(';')
const parser = new CookieParser(value, encryption)
return {
Expand All @@ -1115,7 +1115,7 @@ test.group('Response', (group) => {
})

const response = await supertest(url).get('/').expect(200)
const cookies = response.get('Set-Cookie').map((cookie: string) => {
const cookies = response.get('Set-Cookie')!.map((cookie: string) => {
const [value, ...options] = cookie.split(';')
const parser = new CookieParser(value, encryption)
return {
Expand All @@ -1141,7 +1141,7 @@ test.group('Response', (group) => {

const response = await supertest(url).get('/').expect(200)

const cookies = response.get('Set-Cookie').map((cookie: string) => {
const cookies = response.get('Set-Cookie')!.map((cookie: string) => {
const [value, ...options] = cookie.split(';')
const parser = new CookieParser(value, encryption)
return {
Expand Down Expand Up @@ -1184,7 +1184,7 @@ test.group('Response', (group) => {

const response = await supertest(url).get('/').expect(200)

const cookies = response.get('Set-Cookie').map((cookie: string) => {
const cookies = response.get('Set-Cookie')!.map((cookie: string) => {
const [value, ...options] = cookie.split(';')
const parser = new CookieParser(value, encryption)
return {
Expand All @@ -1210,7 +1210,7 @@ test.group('Response', (group) => {

const response = await supertest(url).get('/').expect(200)

const cookies = response.get('Set-Cookie').map((cookie: string) => {
const cookies = response.get('Set-Cookie')!.map((cookie: string) => {
const [value, ...options] = cookie.split(';')
return {
value: value.split('=')[1] || null,
Expand Down

0 comments on commit bf4f0bb

Please sign in to comment.