raviqqe/pomodoro

View on GitHub
src/infrastructure/react/TextButton.test.tsx

Summary

Maintainability
A
1 hr
Test Coverage
import { render } from "@testing-library/react";
import { expect, it } from "vitest";
import { TextButton } from "./TextButton.js";

it("renders", () => {
  expect(
    render(<TextButton>foo</TextButton>).container.firstChild,
  ).toMatchSnapshot();
});

it("renders as a secondary button", () => {
  expect(
    render(<TextButton secondary>foo</TextButton>).container.firstChild,
  ).toMatchSnapshot();
});