Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Commit 81b686b

Browse files
committed
Added more new tests 🚀
1 parent 62f9d75 commit 81b686b

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

__tests__/gallery.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const images = [
6767
];
6868

6969
describe("Gallery", () => {
70-
it("show the image when the user clicks on it", async () => {
70+
it("shows the image when the user clicks on it", async () => {
7171
render(
7272
<Page>
7373
<Gallery images={images} />

__tests__/resume.test.tsx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import { fireEvent, render, screen } from "@testing-library/react";
2+
import { Page } from "../src/components/design-system/templates/page";
3+
import React from "react";
4+
import { Resume } from "../src/components/design-system/organism/resume";
5+
6+
describe("Resume", () => {
7+
it("shows the correct tab on click", async () => {
8+
render(
9+
<Page>
10+
<Resume />
11+
</Page>
12+
);
13+
14+
const experienceTab = screen.getByText("Experience");
15+
await fireEvent.click(experienceTab);
16+
17+
expect(screen.getByText("Master's degree in Computer Science")).toBeDefined();
18+
19+
const projectsTab = screen.getByText("Projects");
20+
await fireEvent.click(projectsTab);
21+
22+
expect(screen.getByText("Spectral Clara Lux Tracer")).toBeDefined();
23+
});
24+
});

0 commit comments

Comments
 (0)