Skip to content

Commit

Permalink
fix(ansi): better names for normal and bright objects (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgoudham authored Nov 2, 2024
1 parent eb55865 commit 251f6a2
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 67 deletions.
8 changes: 8 additions & 0 deletions mod.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ Deno.test("flavors", () => {
Deno.test("ansiEntries", () => {
flavorEntries.map(([flavorName, flavor]) => {
flavor.ansiColorEntries.map(([ansiColorName, ansiColor]) => {
assertEquals(
ansiColor.normal.name,
ansiColor.name
);
assertEquals(
ansiColor.bright.name,
`Bright ${ansiColor.name}`
);
assertEquals(
ansiColor.normal.hex,
palette[flavorName].ansiColors[ansiColorName].normal.hex,
Expand Down
Loading

0 comments on commit 251f6a2

Please sign in to comment.