Fix: allow explicit cookie header overwrite (#6672)
Tests / vitest (1) (push) Has been cancelled
Docker CI / Docker Build & Push (push) Has been cancelled
Lint / Linting Checks (push) Has been cancelled
Release Drafter / Update Release Draft (push) Has been cancelled
Release Drafter / Auto Label PR (push) Has been cancelled
Tests / vitest (2) (push) Has been cancelled
Tests / vitest (3) (push) Has been cancelled
Tests / vitest (4) (push) Has been cancelled

This commit is contained in:
shamoon
2026-05-13 08:37:33 -07:00
committed by GitHub
parent 02a9d74c95
commit 9b1b14116b
8 changed files with 29 additions and 6 deletions
+3
View File
@@ -86,6 +86,9 @@ describe("widgets/unifi/proxy", () => {
expect(httpProxy).toHaveBeenCalledTimes(4);
expect(httpProxy.mock.calls[1][0].toString()).toContain("/proxy/network/api/self");
expect(cookieJar.addCookieToJar).toHaveBeenCalled();
expect(cookieJar.setCookieHeader).toHaveBeenLastCalledWith(expect.any(URL), expect.any(Object), {
overwrite: true,
});
expect(res.statusCode).toBe(200);
expect(res.body).toEqual(Buffer.from("data"));
});