Skip to content

Commit

Permalink
add some test for LoginPanel Component
Browse files Browse the repository at this point in the history
  • Loading branch information
jitendrasbunde committed May 21, 2020
1 parent 0d425e2 commit 194beeb
Showing 1 changed file with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,16 @@ import React from "react";
import { render } from "@testing-library/react";
import LoginPanel from "./LoginPanel";

it("should equal to value", () => {
const { getByText } = render(<LoginPanel />);
test("should equal to value", () => {
const { getByText } = render(
<LoginPanel
orgPrimaryCoreValue="Let Create"
buttonText="Google Sign in"
encouragementThought="office positive"
/>
);
expect(getByText("Peerly")).toHaveTextContent("Peerly");
expect(getByText("Let Create")).toHaveTextContent("Let Create");
expect(getByText("office positive")).toHaveTextContent("office positive");
expect(getByText("Google Sign in")).toHaveTextContent("Google Sign in");
});

0 comments on commit 194beeb

Please sign in to comment.