Download __tests__/components/features/conversation/conversation-loading.test.tsx from SaylorTwift/openhands: direct link, hf CLI and curl.
- Browser
- Download file 623 Bytes
-
https://huggingface.co/SaylorTwift/openhands/resolve/main/__tests__/components/features/conversation/conversation-loading.test.tsx
- Command line
-
hf download hf://SaylorTwift/openhands/__tests__/components/features/conversation/conversation-loading.test.tsx
-
curl -L -o conversation-loading.test.tsx https://huggingface.co/SaylorTwift/openhands/resolve/main/__tests__/components/features/conversation/conversation-loading.test.tsx
623 Bytes
| import { render, screen } from "@testing-library/react"; | |
| import { describe, it, expect } from "vitest"; | |
| import { ConversationLoading } from "#/components/features/conversation/conversation-loading"; | |
| // react-i18next is mocked globally in vitest.setup.ts (t returns the key), so | |
| // the rendered text is the I18nKey itself (HOME$LOADING). | |
| describe("ConversationLoading", () => { | |
| it("renders the loading message", () => { | |
| // Arrange & Act | |
| render(<ConversationLoading />); | |
| // Assert — the loading status text is surfaced to the user | |
| expect(screen.getByText("HOME$LOADING")).toBeInTheDocument(); | |
| }); | |
| }); | |