The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 03:37 UTC
| 1 | import { expect, it } from "vite-plus/test"; |
| 2 | |
| 3 | import { codeLanguageEntry, languageOfInfoString } from "./composer-code-languages"; |
| 4 | |
| 5 | it("recognizes plain-text fence info strings without treating metadata as the language", () => { |
| 6 | const entries = ["Text", "TEXT", "plaintext", "txt"].map((language) => |
| 7 | codeLanguageEntry(languageOfInfoString(` ${language} title=notes.txt`)), |
| 8 | ); |
| 9 | |
| 10 | expect(entries).toEqual(Array.from({ length: 4 }, () => ({ id: "", label: "Plain text" }))); |
| 11 | }); |