/**
 * Unit tests for LoadingState. Ported from webapp/js/ui.test.js (loading).
 */

import { describe, it, expect, beforeEach } from "vitest";
import { render, screen } from "@testing-library/react";
import { LoadingState } from "./LoadingState";
import { resetAppStore } from "@/test/test-utils";

describe("LoadingState", () => {
  beforeEach(() => resetAppStore());

  it("renders loading text", () => {
    render(<LoadingState />);
    expect(screen.getByText(/Loading/i)).toBeInTheDocument();
  });
});
