project/medusa-foundation-audit
| 1 | import { render, screen } from "@testing-library/react" |
| 2 | import * as React from "react" |
| 3 | |
| 4 | import { Label } from "./label" |
| 5 | |
| 6 | test("renders a label", () => { |
| 7 | render(<Label>I am a label</Label>) |
| 8 | |
| 9 | const text = screen.getByText("I am a label") |
| 10 | expect(text).toBeInTheDocument() |
| 11 | expect(text.tagName).toBe("LABEL") |
| 12 | }) |