Skip to content

Commit

Permalink
add test case file for LoginPanel
Browse files Browse the repository at this point in the history
  • Loading branch information
jitendrasbunde committed May 21, 2020
1 parent e9e0e60 commit b4ffb92
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ height: auto

const FirstRow = Styled(Row)`
font: Helvetica Neue,Regular;
height: auto
height: auto;
padding-top: 1rem;
`;

const SignInButtonComponent = Styled(ButtonComponent)`
border-radius: 25px;
`;

const LoginPanel = ({ buttonText }) => (
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import React from "react";
import { render } from "@testing-library/react";
import LoginPanel from "./LoginPanel";

it("should equal to value", () => {
const { getByText } = render(<LoginPanel />);
expect(getByText("Peerly")).toHaveTextContent("Peerly");
});

0 comments on commit b4ffb92

Please sign in to comment.