Skip to content

Commit b6e2e2d

Browse files
Merge pull request #12 from Ranger-NF/main
Added support for timetable uploading
2 parents 6be934a + 45041f7 commit b6e2e2d

7 files changed

Lines changed: 844 additions & 58 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

0 commit comments

Comments
 (0)