Skip to content

Commit 707e91b

Browse files
committed
Modified test cases to match the changed design
1 parent 6f280a2 commit 707e91b

3 files changed

Lines changed: 3 additions & 19 deletions

File tree

__test__/__snapshots__/bottomnavbar.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
exports[`BottomNavBar Component matches snapshot 1`] = `
44
<DocumentFragment>
55
<nav
6-
class="fixed left-6 right-6 bottom-8 border-t border-gray-300 bg-[var(--main)] text-foreground rounded-2xl"
6+
class="fixed left-6 right-6 bottom-8 border-t border-gray-300 bg-[var(--main)] max-w-[var(--max-screen-size)] mx-auto text-foreground rounded-2xl"
77
>
88
<ul
99
class="flex items-center justify-around py-2"

__test__/home.test.tsx

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,28 +20,11 @@ describe("ResponsiveDashboard", () => {
2020
const mainContainer = container.querySelector(".min-h-screen");
2121
expect(mainContainer).toBeInTheDocument();
2222

23-
// Check max-width container
24-
const maxWidthContainer = container.querySelector(".max-w-7xl");
25-
expect(maxWidthContainer).toBeInTheDocument();
26-
2723
// Check flex container for md screens
2824
const flexContainer = container.querySelector(".md\\:flex");
2925
expect(flexContainer).toBeInTheDocument();
3026
});
3127

32-
it("applies responsive classes correctly", () => {
33-
const { container } = render(<ResponsiveDashboard />);
34-
35-
// Check section has responsive height classes
36-
const section = container.querySelector("section");
37-
expect(section).toHaveClass(
38-
"h-[64vh]",
39-
"sm:h-[55vh]",
40-
"md:h-full",
41-
"md:w-1/2",
42-
);
43-
});
44-
4528
it("renders both child components", () => {
4629
render(<ResponsiveDashboard />);
4730

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"dev": "next dev --turbopack",
77
"build": "next build",
88
"start": "next start",
9-
"test": "jest"
9+
"test": "jest",
10+
"update-snapshot": "jest --updateSnapshot"
1011
},
1112
"dependencies": {
1213
"@types/papaparse": "^5.3.16",

0 commit comments

Comments
 (0)