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

> 11 lines of code and 0 definitions.

Tree: Codebase Testing
Language: typescript
Canonical: https://banes-lab.com/anatomy/testing#file-testing-test-content-core-loaders-panel-loader-test-ts
Source text: https://banes-lab.com/source/testing/test.content/core/loaders/panel.loader.test.ts.txt

Listed in [test.content/core/loaders](https://banes-lab.com/api/source/testing/test.content/core/loaders.md), after [test.content/core/loaders/link.loader.test.ts](https://banes-lab.com/source/testing/test.content/core/loaders/link.loader.test.ts.md) and before [test.content/core/loaders/payload.loader.test.ts](https://banes-lab.com/source/testing/test.content/core/loaders/payload.loader.test.ts.md).

## Contained in

- [test.content/core/loaders](https://banes-lab.com/anatomy/testing/folder-testing-test-content-core-loaders.md)

## Source

```typescript
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);
    });
});
```
