From 1af8c0702cd28550235c09eaba61187f01427eaf Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Tue, 12 Jan 2021 21:26:19 +0100 Subject: [PATCH] test with additional cookies --- test/spec/Gateway.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/spec/Gateway.ts b/test/spec/Gateway.ts index adf0247..25098db 100644 --- a/test/spec/Gateway.ts +++ b/test/spec/Gateway.ts @@ -61,7 +61,9 @@ describe ('gateway', () => { it ('should allow a valid access token using cookies', async () => { const token = await authority.sign ('access_token', 60); - const resp = await get ({ cookie: `cookie_jar=${token.signature}` }); + const resp = await get ( + { cookie: `foo=bar;cookie_jar=${token.signature};asd=efg` } + ); expect (resp.statusCode) .toEqual (200); expect (JSON.parse (resp.body as string).token_id)