[ci] format

This commit is contained in:
matthewp 2022-04-12 20:50:59 +00:00 committed by github-actions[bot]
parent a5caf08e24
commit 6d0b0597bd
2 changed files with 5 additions and 5 deletions

View file

@ -56,10 +56,10 @@ export const createExports = (manifest: SSRManifest, args: Args) => {
};
const rawPacked = (response.headers as HeadersWithRaw).raw();
if('set-cookie' in rawPacked) {
if ('set-cookie' in rawPacked) {
fnResponse.multiValueHeaders = {
'set-cookie': rawPacked['set-cookie']
}
'set-cookie': rawPacked['set-cookie'],
};
}
}

View file

@ -39,12 +39,12 @@ describe('Cookies', () => {
headers: {},
rawUrl: 'http://example.com/login',
body: '{}',
isBase64Encoded: false
isBase64Encoded: false,
});
expect(resp.statusCode).to.equal(301);
expect(resp.headers.location).to.equal('/');
expect(resp.multiValueHeaders).to.be.deep.equal({
'set-cookie': [ 'foo=foo; HttpOnly', 'bar=bar; HttpOnly' ]
'set-cookie': ['foo=foo; HttpOnly', 'bar=bar; HttpOnly'],
});
});
});