aboutsummaryrefslogtreecommitdiff
path: root/scripts/theme-studio/test-app-core.mjs
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-14 21:59:09 -0500
committerCraig Jennings <c@cjennings.net>2026-06-14 21:59:28 -0500
commit101956c7134e93deb2dee0080396f67aef36f9e5 (patch)
treefee4c494a261f7af901b89d2479a8225aebb238a /scripts/theme-studio/test-app-core.mjs
parentf8f047db6884cdd55a732f1c535545d44d313645 (diff)
downloaddotemacs-101956c7134e93deb2dee0080396f67aef36f9e5.tar.gz
dotemacs-101956c7134e93deb2dee0080396f67aef36f9e5.zip
chore(theme-studio): remove dead code and clear a type warning
- ramp (app-core.js) and its test-ramp.mjs: superseded by regenColumn, no production caller. - optList (app-core.js) and its tests: superseded by paletteOptionList. - ITALIC in generate.py: computed, never read (ITALIC_MAP is the live one). - a stray empty string in MU4E_FACES that .split() silently dropped. - the dead #familytest alias in the columntest gate, which HASHES never listed. - widen face_rows to Sequence[str], clearing the list-invariance warnings on the APPS calls.
Diffstat (limited to 'scripts/theme-studio/test-app-core.mjs')
-rw-r--r--scripts/theme-studio/test-app-core.mjs17
1 files changed, 1 insertions, 16 deletions
diff --git a/scripts/theme-studio/test-app-core.mjs b/scripts/theme-studio/test-app-core.mjs
index e98e511e5..42ce4e0a2 100644
--- a/scripts/theme-studio/test-app-core.mjs
+++ b/scripts/theme-studio/test-app-core.mjs
@@ -7,7 +7,7 @@ import assert from 'node:assert/strict';
import { readFileSync } from 'node:fs';
import { fileURLToPath } from 'node:url';
import {
- nameToHex, normalizePkgFace, buildPkgmap, packagesForExport, mergePackagesInto, effResolve, resolveSyntaxFg, resolveUiAttr, dropdownRowTextColor, optList, paletteOptionList, spanNeighborHex, slugify,
+ nameToHex, normalizePkgFace, buildPkgmap, packagesForExport, mergePackagesInto, effResolve, resolveSyntaxFg, resolveUiAttr, dropdownRowTextColor, paletteOptionList, spanNeighborHex, slugify,
clearPalettePlan, deletePaletteColumnPlan, groundColumnMembersFromPalette, areAllLocked, lockToggleLabel, toggleLockSet,
} from './app-core.js';
import { planPaletteGenerator, entriesForGeneratedColumn } from './palette-generator-core.js';
@@ -33,21 +33,6 @@ test('nameToHex: Boundary/Error — null, empty, and unknown names give null', (
assert.equal(nameToHex('chartreuse', PAL), null);
});
-test('optList: Normal — default entry then the whole palette', () => {
- assert.deepEqual(optList('#67809c', PAL), [['', '— default —'], ...PAL]);
-});
-
-test('optList: Boundary — empty cur is "have", so no (gone) entry', () => {
- assert.deepEqual(optList('', PAL), [['', '— default —'], ...PAL]);
-});
-
-test('optList: Error — a cur not in the palette is surfaced as (gone) first', () => {
- const list = optList('#123456', PAL);
- assert.deepEqual(list[0], ['', '— default —']);
- assert.deepEqual(list[1], ['#123456', '(gone)']);
- assert.deepEqual(list.slice(2), PAL);
-});
-
test('paletteOptionList: Normal — color choices follow visual column ordering', () => {
const pal = [
['#67809c', 'blue'],