aboutsummaryrefslogtreecommitdiff
path: root/test/js/deno/fetch/headers.test.ts
diff options
context:
space:
mode:
authorGravatar Dylan Conway <35280289+dylan-conway@users.noreply.github.com> 2023-08-07 19:32:23 -0700
committerGravatar GitHub <noreply@github.com> 2023-08-07 19:32:23 -0700
commit1239c9460ac1d10376e27653b4c34d789f2a8f43 (patch)
treeba51652fdd36bc07fec7e5744b2c1cddad3e9ab3 /test/js/deno/fetch/headers.test.ts
parentf2f227720b3ffe1797a0a4e500e9a9a639167dc6 (diff)
downloadbun-1239c9460ac1d10376e27653b4c34d789f2a8f43.tar.gz
bun-1239c9460ac1d10376e27653b4c34d789f2a8f43.tar.zst
bun-1239c9460ac1d10376e27653b4c34d789f2a8f43.zip
fix iterating headers with `set-cookie` (#4048)
* fix iterating headers with `set-cookie` * a test * move work to `HTTPHeaderMap::set` * append set-cookie after sort * remove compare function
Diffstat (limited to 'test/js/deno/fetch/headers.test.ts')
-rw-r--r--test/js/deno/fetch/headers.test.ts16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/js/deno/fetch/headers.test.ts b/test/js/deno/fetch/headers.test.ts
index ee2466e32..efc4e6a6e 100644
--- a/test/js/deno/fetch/headers.test.ts
+++ b/test/js/deno/fetch/headers.test.ts
@@ -312,16 +312,16 @@ test(function headersInitMultiple() {
];
assertEquals(actual, [
[
+ "x-deno",
+ "foo, bar"
+ ],
+ [
"set-cookie",
"foo=bar"
],
[
"set-cookie",
"bar=baz"
- ],
- [
- "x-deno",
- "foo, bar"
]
]);
});
@@ -363,16 +363,16 @@ test(function headersAppendMultiple() {
];
assertEquals(actual, [
[
+ "x-deno",
+ "foo, bar"
+ ],
+ [
"set-cookie",
"foo=bar"
],
[
"set-cookie",
"bar=baz"
- ],
- [
- "x-deno",
- "foo, bar"
]
]);
});