mirror of
https://github.com/BerriAI/litellm.git
synced 2025-12-06 11:33:26 +08:00
Unit tests
This commit is contained in:
@@ -193,7 +193,7 @@ describe("CreateKeyPage auth behavior", () => {
|
||||
|
||||
// Assert: we eventually redirect to SSO login (single replace, not assign/href)
|
||||
await waitFor(() => {
|
||||
expect(window.location.replace).toHaveBeenCalledWith("https://example.com/sso/key/generate");
|
||||
expect(window.location.replace).toHaveBeenCalledWith("https://example.com/ui/login");
|
||||
});
|
||||
|
||||
// And we attempted to clear the cookie (defensive deletion)
|
||||
|
||||
Reference in New Issue
Block a user