Skip to content

Commit 23ef44a

Browse files
committed
Fix type errors
1 parent badd5dd commit 23ef44a

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

apigw/src/shared/test/gateway-tester.ts

+2-8
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,11 @@ export class GatewayTester {
6060
return undefined
6161
}
6262

63-
public async setCookie(cookie: Cookie): Promise<Cookie> {
63+
public async setCookie(cookie: Cookie): Promise<void> {
6464
// Cookie domain must be cleared before setting to avoid issue with "localhost"
6565
// being in the public suffix list (and therefore denied by setCookie())
6666
cookie.domain = null
67-
const cookieString = cookie.cookieString()
68-
return await this.cookies.setCookie(cookieString, this.baseUrl, {
69-
http: cookie.httpOnly,
70-
secure: cookie.secure,
71-
now: cookie.creation ?? undefined,
72-
sameSiteContext: cookie.sameSite
73-
})
67+
await this.cookies.setCookie(cookie, this.baseUrl)
7468
}
7569

7670
public async getCookie(key: string): Promise<Cookie | undefined> {

0 commit comments

Comments
 (0)