test with additional cookies

This commit is contained in:
Timo Hocker 2021-01-12 21:26:19 +01:00
parent e6039e78b1
commit 1af8c0702c

View File

@ -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)