Skip to content

Commit

Permalink
added test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
deepikagonuguntla committed Nov 14, 2024
1 parent 81ba3c3 commit 461e632
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/SubNav/SubNav.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import { render, screen } from "@testing-library/react";
import { axe } from "jest-axe";
import SubNav, { SubNavButton, SubNavLink } from "./SubNav";

jest.mock('@chakra-ui/react', () => ({
...jest.requireActual('@chakra-ui/react'),
jest.mock("@chakra-ui/react", () => ({
...jest.requireActual("@chakra-ui/react"),
useMultiStyleConfig: () => ({
outLine: {
border: '1px solid', // Mocking the border style to be 1px solid
borderRadius: '6px',
border: "1px solid", // Mocking the border style to be 1px solid
borderRadius: "6px",
},
}),
}));
Expand Down Expand Up @@ -161,7 +161,7 @@ describe("SubNavLink", () => {
});

it("applies outlined styles when isOutlined is true", () => {
render(<SubNavButton isOutlined > Outline Subnav Button </SubNavButton>);
render(<SubNavButton isOutlined> Outline Subnav Button </SubNavButton>);

const button = screen.getByText("Outline Subnav Button");
// Check if the outline style is applied
Expand Down

0 comments on commit 461e632

Please sign in to comment.