mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-31 23:55:23 +00:00
feat: port the demo redesign with Manage and Settings tabs
This commit is contained in:
1 parent
f8151cb885
commit
35c954b79a
128 files changed
+13262
-8143
No files matched your search
@@ -0,0 +1,19 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { masonryColumns } from "@/components/card-masonry";
|
||||
|
||||
describe("masonryColumns", () => {
|
||||
it("stacks into one column when narrow", () => {
|
||||
expect(masonryColumns(400, 4)).toBe(1);
|
||||
});
|
||||
|
||||
it("grows with the container up to the preference", () => {
|
||||
expect(masonryColumns(700, 3)).toBe(2);
|
||||
expect(masonryColumns(1000, 3)).toBe(3);
|
||||
expect(masonryColumns(1300, 3)).toBe(3);
|
||||
expect(masonryColumns(1300, 4)).toBe(4);
|
||||
});
|
||||
|
||||
it("falls back to three for an unknown preference", () => {
|
||||
expect(masonryColumns(1300, 9)).toBe(3);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user