Buckets:
| // Copyright (c) 2026 the Zuke contributors | |
| // SPDX-License-Identifier: MIT | |
| import { | |
| defaultTheme, | |
| LEVEL_MARKS, | |
| type Theme, | |
| themeTags, | |
| } from "../src/theme.ts"; | |
| import { assertEquals } from "../../core/tests/_assert.ts"; | |
| Deno.test("themeTags exposes every palette token as a markup tag", () => { | |
| const custom: Theme = { ...defaultTheme, success: ["blue", "bold"] }; | |
| const tags = themeTags(custom); | |
| assertEquals(tags.success, ["blue", "bold"]); | |
| assertEquals(tags.error, defaultTheme.error); | |
| }); | |
| Deno.test("LEVEL_MARKS pairs an icon with a palette token per level", () => { | |
| assertEquals(LEVEL_MARKS.success.icon, "✔"); | |
| assertEquals(LEVEL_MARKS.success.token, "success"); | |
| assertEquals(LEVEL_MARKS.error.token, "error"); | |
| }); | |
Xet Storage Details
- Size:
- 748 Bytes
- Xet hash:
- 5c2a920049723033a3ba1ef9a56ece1aa26aefd8e5b19cec555d4ec62ebd888a
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.