fix(web): update useWebSocket test to expect withCredentials option
All checks were successful
ci/woodpecker/push/web Pipeline was successful
All checks were successful
ci/woodpecker/push/web Pipeline was successful
PR #547 added withCredentials: true to the socket.io connection options but the test assertion was not updated, causing CI failure. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -47,6 +47,7 @@ describe("useWebSocket", (): void => {
|
|||||||
expect(io).toHaveBeenCalledWith(expect.any(String), {
|
expect(io).toHaveBeenCalledWith(expect.any(String), {
|
||||||
auth: { token },
|
auth: { token },
|
||||||
query: { workspaceId },
|
query: { workspaceId },
|
||||||
|
withCredentials: true,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user