Skip to content

Commit

Permalink
🐛 fix : Suggested Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
saiprabhu-dandanayak committed Feb 5, 2024
1 parent 4d60e62 commit 9d6b11b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/atoms/image/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { image_DataTestId } from "../../../utils/constants";
import { IMAGE_DATATESTID } from "../../../utils/constants";

interface ImageComponentProps {
src: string;
Expand All @@ -9,7 +9,7 @@ interface ImageComponentProps {
const ImageComponent = ({ src, height, width }: ImageComponentProps) => {
return (
<img
data-testid={image_DataTestId}
data-testid={IMAGE_DATATESTID}
src={src}
width={width}
height={height}
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/atoms/typography/index.test.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { render } from "@testing-library/react";
import MuiTypography from ".";
import { typography_DataTestId } from "../../../utils/constants";
import { TYPOGRAPHY_DATATESTID } from "../../../utils/constants";

test("renders Typography", () => {
const { getByTestId } = render(<MuiTypography text="hello" variant="h1" />);
expect(getByTestId(typography_DataTestId)).toBeDefined();
expect(getByTestId(TYPOGRAPHY_DATATESTID)).toBeDefined();
});
4 changes: 2 additions & 2 deletions frontend/src/utils/constants.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@

export const typography_DataTestId='typography-component'
export const image_DataTestId='image'
export const TYPOGRAPHY_DATATESTID='typography-component'
export const IMAGE_DATATESTID='image'

0 comments on commit 9d6b11b

Please sign in to comment.