test.content/core/loaders/panel.loader.test.ts

test.content/core/loaders/panel.loader.test.ts is a file in Codebase Testing. 11 lines of code and 0 definitions.

import { describe, expect, it } from "vitest";
import { isChapterTab } from "@banes-lab/content/core/loaders/panel.loader.ts";

describe("isChapterTab", () => {
    it("holds a tab drawn by the chapter renderer to the panel rules, a sectioned tab included", () => {
        expect(isChapterTab({})).toBe(true);
        expect(isChapterTab({ layout: "chapter" })).toBe(true);
        expect(isChapterTab({ layout: "sectioned" })).toBe(true);
        expect(isChapterTab({ layout: "glossary" })).toBe(false);
        expect(isChapterTab({ layout: 3 })).toBe(false);
    });
});