Files
openfsd/webjs
Reese Norris d14dab8736 web: add site-wide dark mode with shared theme tokens
Bootstrap data-bs-theme + localStorage toggle in layout chrome; map
console CSS (users/sweatbox/airport editor) onto shared --ofs-console-*
tokens; swap OSM basemap for dark maps. Include PE and webjs coverage,
and the approved sweatbox TWRTrainer P2 command-parity design doc.
2026-07-27 17:59:01 -04:00
..

openfsd webjs tests

Node unit tests for pure first-party browser modules under internal/web/static/js/openfsd/. Sources are not duplicated here — tests import via relative paths into the go:embed tree.

Requirements

  • Node.js ≥ 20 (CI pins Node 20 LTS)
  • Zero production npm dependencies for unit tests (node:test / node:assert/strict)

Run

From repo root:

bash scripts/check-webjs.sh

Or from this directory:

npm test
# optional coverage (Node experimental):
npm run test:coverage

Layout

webjs/
  package.json
  airport-editor/*.test.js   # imports ../../internal/web/static/js/openfsd/airport-editor/*

Canonical sources: internal/web/static/js/openfsd/airport-editor/. Goldens / fixtures: pkg/twrfiles/testdata/.