Files
openfsd/webjs
Reese Norris f2dd5a609c airport-editor: fix vertex drag (live geometry, handles, click suppress)
Make selected surface vertices reliably draggable with live polyline/marker
updates, single aligned handles, and post-drag map-click suppress that does
not block full refresh on dragend.
2026-07-27 14:52:59 -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/.