Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
default: useAuthorizedMock,
}));

vi.mock("@/app/(dashboard)/hooks/useIsOrgAdmin", () => ({
default: () => false,
}));

const fetchMock = vi.fn();

const requestedUrls = () => fetchMock.mock.calls.map(([url]) => String(url));
Expand All @@ -25,7 +29,7 @@
beforeEach(() => {
testQueryClient.clear();
vi.clearAllMocks();
fetchMock.mockResolvedValue({

Check warning on line 32 in ui/litellm-dashboard/src/app/(dashboard)/guardrails-monitor/page.integration.test.tsx

View workflow job for this annotation

GitHub Actions / frontend-lint

Object literal with 4 properties passed inline as an argument; assign it to a named variable first
ok: true,
status: 200,
statusText: "OK",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
default: useAuthorizedMock,
}));

vi.mock("@/app/(dashboard)/hooks/useIsOrgAdmin", () => ({
default: () => false,
}));

const fetchMock = vi.fn();

const requestedUrls = () => fetchMock.mock.calls.map(([url]) => String(url));
Expand All @@ -24,7 +28,7 @@
beforeEach(() => {
testQueryClient.clear();
vi.clearAllMocks();
fetchMock.mockResolvedValue({

Check warning on line 31 in ui/litellm-dashboard/src/app/(dashboard)/memory/page.integration.test.tsx

View workflow job for this annotation

GitHub Actions / frontend-lint

Object literal with 5 properties passed inline as an argument; assign it to a named variable first
ok: true,
status: 200,
statusText: "OK",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
default: useAuthorizedMock,
}));

vi.mock("@/app/(dashboard)/hooks/useIsOrgAdmin", () => ({
default: () => false,
}));

const fetchMock = vi.fn();

const requestedUrls = () => fetchMock.mock.calls.map(([url]) => String(url));
Expand All @@ -25,7 +29,7 @@
beforeEach(() => {
testQueryClient.clear();
vi.clearAllMocks();
fetchMock.mockResolvedValue({

Check warning on line 32 in ui/litellm-dashboard/src/app/(dashboard)/workflows/page.integration.test.tsx

View workflow job for this annotation

GitHub Actions / frontend-lint

Object literal with 4 properties passed inline as an argument; assign it to a named variable first
ok: true,
status: 200,
statusText: "OK",
Expand Down
Loading