diff --git a/ui/litellm-dashboard/src/components/guardrails/GuardrailSelector.test.tsx b/ui/litellm-dashboard/src/components/guardrails/GuardrailSelector.test.tsx index 9da2b09b51..8a3ee60415 100644 --- a/ui/litellm-dashboard/src/components/guardrails/GuardrailSelector.test.tsx +++ b/ui/litellm-dashboard/src/components/guardrails/GuardrailSelector.test.tsx @@ -1,8 +1,7 @@ -import { describe, it, expect, vi, beforeEach } from "vitest"; -import { render, screen, waitFor } from "@testing-library/react"; -import userEvent from "@testing-library/user-event"; -import GuardrailSelector from "./GuardrailSelector"; +import { render, waitFor } from "@testing-library/react"; +import { beforeEach, describe, expect, it, vi } from "vitest"; import * as networking from "../networking"; +import GuardrailSelector from "./GuardrailSelector"; vi.mock("../networking"); @@ -48,13 +47,7 @@ describe("GuardrailSelector", () => { guardrails: mockGuardrails, }); - render( - - ); + render(); // Verify API was called with correct token await waitFor(() => { @@ -62,4 +55,3 @@ describe("GuardrailSelector", () => { }); }); }); - diff --git a/ui/litellm-dashboard/src/components/guardrails/GuardrailTestPlayground.test.tsx b/ui/litellm-dashboard/src/components/guardrails/GuardrailTestPlayground.test.tsx index 99744e6e70..2a8d58a58c 100644 --- a/ui/litellm-dashboard/src/components/guardrails/GuardrailTestPlayground.test.tsx +++ b/ui/litellm-dashboard/src/components/guardrails/GuardrailTestPlayground.test.tsx @@ -1,8 +1,7 @@ -import { describe, it, expect, vi, beforeEach } from "vitest"; import { render, screen, waitFor } from "@testing-library/react"; import userEvent from "@testing-library/user-event"; +import { beforeEach, describe, expect, it, vi } from "vitest"; import GuardrailTestPlayground from "./GuardrailTestPlayground"; -import * as networking from "../networking"; vi.mock("../networking"); @@ -52,7 +51,7 @@ describe("GuardrailTestPlayground", () => { isLoading={false} accessToken={mockAccessToken} onClose={vi.fn()} - /> + />, ); // Initially, the empty state should be shown @@ -72,4 +71,3 @@ describe("GuardrailTestPlayground", () => { expect(screen.getByText("1 of 1 selected")).toBeInTheDocument(); }); }); - diff --git a/ui/litellm-dashboard/src/components/model_info_view.test.tsx b/ui/litellm-dashboard/src/components/model_info_view.test.tsx index 3b36e7324c..5c7aa3c82f 100644 --- a/ui/litellm-dashboard/src/components/model_info_view.test.tsx +++ b/ui/litellm-dashboard/src/components/model_info_view.test.tsx @@ -1,5 +1,5 @@ import { render, waitFor } from "@testing-library/react"; -import { describe, it, expect, vi, beforeEach, afterEach } from "vitest"; +import { describe, expect, it, vi } from "vitest"; import ModelInfoView from "./model_info_view"; vi.mock("../../utils/dataUtils", () => ({