mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-14 09:03:16 +00:00
Merge f225c26de3 into e9b1c11098
This commit is contained in:
commit
076d2e487a
3 changed files with 12 additions and 0 deletions
|
|
@ -9,6 +9,10 @@ vi.mock("@/app/(dashboard)/hooks/useAuthorized", () => ({
|
|||
default: useAuthorizedMock,
|
||||
}));
|
||||
|
||||
vi.mock("@/app/(dashboard)/hooks/useIsOrgAdmin", () => ({
|
||||
default: () => false,
|
||||
}));
|
||||
|
||||
const fetchMock = vi.fn();
|
||||
|
||||
const requestUrl = (input: RequestInfo | URL) => (input instanceof Request ? input.url : String(input));
|
||||
|
|
|
|||
|
|
@ -9,6 +9,10 @@ vi.mock("@/app/(dashboard)/hooks/useAuthorized", () => ({
|
|||
default: useAuthorizedMock,
|
||||
}));
|
||||
|
||||
vi.mock("@/app/(dashboard)/hooks/useIsOrgAdmin", () => ({
|
||||
default: () => false,
|
||||
}));
|
||||
|
||||
const fetchMock = vi.fn();
|
||||
|
||||
const requestedUrls = () => fetchMock.mock.calls.map(([url]) => String(url));
|
||||
|
|
|
|||
|
|
@ -9,6 +9,10 @@ vi.mock("@/app/(dashboard)/hooks/useAuthorized", () => ({
|
|||
default: useAuthorizedMock,
|
||||
}));
|
||||
|
||||
vi.mock("@/app/(dashboard)/hooks/useIsOrgAdmin", () => ({
|
||||
default: () => false,
|
||||
}));
|
||||
|
||||
const fetchMock = vi.fn();
|
||||
|
||||
const requestedUrls = () => fetchMock.mock.calls.map(([url]) => String(url));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue