import { screen } from "@testing-library/react"
import { render } from "../../test_helpers"
import React from "react"
import { CodeExample } from "./CodeExample"

describe("CodeExample", () => {
  it("renders code", async () => {
    // When
    render(<CodeExample code="echo hello" />)

    // Then
    // Both lines should be rendered
    await screen.findByText("echo hello")
  })
})
