Skip to content

Commit

Permalink
fix(antd): test
Browse files Browse the repository at this point in the history
  • Loading branch information
alicanerdurmaz committed Jan 26, 2024
1 parent 83054e7 commit 8a1bd23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { ThemedTitle } from ".";
describe("Themed Title", () => {
test("should render default text", () => {
const { getByText } = render(<ThemedTitle collapsed={false} />);
expect(getByText("refine Project")).toBeInTheDocument();
expect(getByText("Refine Project")).toBeInTheDocument();
});

test("should render custom text", () => {
Expand All @@ -32,6 +32,6 @@ describe("Themed Title", () => {

test("should not render text when collapsed true", () => {
const { queryByText } = render(<ThemedTitle collapsed={true} />);
expect(queryByText("refine Project")).not.toBeInTheDocument();
expect(queryByText("Refine Project")).not.toBeInTheDocument();
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { ThemedTitleV2 } from ".";
describe("Themed Title", () => {
test("should render default text", () => {
const { getByText } = render(<ThemedTitleV2 collapsed={false} />);
expect(getByText("refine Project")).toBeInTheDocument();
expect(getByText("Refine Project")).toBeInTheDocument();
});

test("should render custom text", () => {
Expand All @@ -32,6 +32,6 @@ describe("Themed Title", () => {

test("should not render text when collapsed true", () => {
const { queryByText } = render(<ThemedTitleV2 collapsed={true} />);
expect(queryByText("refine Project")).not.toBeInTheDocument();
expect(queryByText("Refine Project")).not.toBeInTheDocument();
});
});

0 comments on commit 8a1bd23

Please sign in to comment.