0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-04-14 23:51:49 -05:00

[ci] format

This commit is contained in:
Matt Kane 2025-03-26 09:04:25 +00:00 committed by astrobot-houston
parent 018fbe90f4
commit e4f870b79a
2 changed files with 2 additions and 2 deletions

View file

@ -119,7 +119,7 @@ class AstroCookies implements AstroCookiesInterface {
}
}
// decodeURIComponent is the default decode function for cookies
const decode = options?.decode ?? decodeURIComponent
const decode = options?.decode ?? decodeURIComponent;
const values = this.#ensureParsed();
if (key in values) {

View file

@ -48,7 +48,7 @@ describe('astro/src/core/cookies', () => {
const cookies = new AstroCookies(req);
assert.ok(cookies.has('url'));
assert.equal(cookies.get('url', { decode } ).value, url);
assert.equal(cookies.get('url', { decode }).value, url);
assert.equal(cookies.get('url').value, encode(url));
});