Created
October 29, 2020 08:47
-
-
Save tidusia/a0166299870977e971e0e2abb0eb65ef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test("should render an empty firstname input", () => { | |
const props = Default.args as Props; | |
const { getByLabelText } = render(<Default {...props} />); | |
const input = getByLabelText("Firstname") as HTMLInputElement; | |
expect(input).toBeInTheDocument(); | |
expect(input.value).toBe(""); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment