import "../../../tests/web/test-utils";
import { render } from "@testing-library/react";
import { describe, expect, test } from "bun:test";

import { StatusDot } from "../../../src/web/components/StatusDot";

describe("StatusDot", () => {
  test("up=true 不崩溃", () => {
    const { container } = render(<StatusDot up={true} />);
    expect(container.firstChild).not.toBeNull();
  });

  test("up=false 不崩溃", () => {
    const { container } = render(<StatusDot up={false} />);
    expect(container.firstChild).not.toBeNull();
  });
});
