diff options
author | 2022-12-02 19:35:28 -0800 | |
---|---|---|
committer | 2022-12-02 19:35:28 -0800 | |
commit | 4e6b905a9891ef9cc5127335ea06ec087c5d4a61 (patch) | |
tree | fb9869bad0c8e216f9be94b945200e6eaa6d11f1 /test/bun.js/fetch.test.js | |
parent | 43f2a8eb852a1a57a9def2432e2e0d85df812dca (diff) | |
download | bun-4e6b905a9891ef9cc5127335ea06ec087c5d4a61.tar.gz bun-4e6b905a9891ef9cc5127335ea06ec087c5d4a61.tar.zst bun-4e6b905a9891ef9cc5127335ea06ec087c5d4a61.zip |
Update test
Diffstat (limited to 'test/bun.js/fetch.test.js')
-rw-r--r-- | test/bun.js/fetch.test.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/bun.js/fetch.test.js b/test/bun.js/fetch.test.js index e62022363..ca8e387bf 100644 --- a/test/bun.js/fetch.test.js +++ b/test/bun.js/fetch.test.js @@ -31,7 +31,7 @@ describe("Headers", () => { "Set-Cookie": "foo=bar; Path=/; HttpOnly", }); expect(headers.count).toBe(5); - expect(headers.getSetCookie()).toEqual(["foo=bar; Path=/; HttpOnly"]); + expect(headers.getAll("set-cookie")).toEqual(["foo=bar; Path=/; HttpOnly"]); }); it(".getSetCookie() with array", () => { @@ -44,7 +44,7 @@ describe("Headers", () => { ["Set-Cookie", "foo2=bar2; Path=/; HttpOnly"], ]); expect(headers.count).toBe(6); - expect(headers.getSetCookie()).toEqual([ + expect(headers.getAll("set-cookie")).toEqual([ "foo=bar; Path=/; HttpOnly", "foo2=bar2; Path=/; HttpOnly", ]); |