import React from "react"
import { screen, render } from "@testing-library/react"
import ColorInput from "./color-input"

describe("ColorInput", () => {
  it("only displays color values in hex", () => {
    render(<ColorInput name="color" value="rgb(255, 0, 0)" />)
    expect(screen.getByRole("textbox")).toHaveValue("FF0000")
  })
})
