mirror of
https://github.com/coder/coder.git
synced 2026-11-09 09:03:43 +08:00
16 lines
410 B
TypeScript
16 lines
410 B
TypeScript
import { screen } from "@testing-library/react"
|
|
import { render } from "../../testHelpers/renderHelpers"
|
|
import { CodeBlock } from "./CodeBlock"
|
|
|
|
describe("CodeBlock", () => {
|
|
it("renders lines)", async () => {
|
|
// When
|
|
render(<CodeBlock lines={["line1", "line2"]} />)
|
|
|
|
// Then
|
|
// Both lines should be rendered
|
|
await screen.findByText("line1")
|
|
await screen.findByText("line2")
|
|
})
|
|
})
|