mirror of
https://github.com/gethomepage/homepage.git
synced 2026-02-07 16:30:52 +08:00
Chore: homepage tests (#6278)
This commit is contained in:
12
src/utils/layout/columns.test.js
Normal file
12
src/utils/layout/columns.test.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
import { columnMap } from "./columns";
|
||||
|
||||
describe("utils/layout/columns", () => {
|
||||
it("maps column counts to responsive grid classes", () => {
|
||||
expect(columnMap).toHaveLength(9);
|
||||
expect(columnMap[1]).toContain("grid-cols-1");
|
||||
expect(columnMap[2]).toContain("md:grid-cols-2");
|
||||
expect(columnMap[8]).toContain("lg:grid-cols-8");
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user