From f2d999973ab7a00188bae82109b59b769eb94aef Mon Sep 17 00:00:00 2001 From: Ken Date: Thu, 28 May 2026 06:16:06 +0000 Subject: [PATCH] feat: replace xterm.js script tags with ghostty-web in index.html --- muxplex/frontend/index.html | 5 ++--- muxplex/tests/test_frontend_js.py | 27 +++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 3 deletions(-) diff --git a/muxplex/frontend/index.html b/muxplex/frontend/index.html index 1a38ad3..4d4c773 100644 --- a/muxplex/frontend/index.html +++ b/muxplex/frontend/index.html @@ -10,7 +10,7 @@ - + muxplex @@ -269,8 +269,7 @@ - - + diff --git a/muxplex/tests/test_frontend_js.py b/muxplex/tests/test_frontend_js.py index 881a92b..bd4a19a 100644 --- a/muxplex/tests/test_frontend_js.py +++ b/muxplex/tests/test_frontend_js.py @@ -5,10 +5,37 @@ import re JS_PATH = pathlib.Path(__file__).parent.parent / "frontend" / "app.js" TERMINAL_JS_PATH = pathlib.Path(__file__).parent.parent / "frontend" / "terminal.js" +INDEX_HTML_PATH = pathlib.Path(__file__).parent.parent / "frontend" / "index.html" # Read once per module — tests are read-only so sharing is safe. _JS: str = JS_PATH.read_text() _TERMINAL_JS: str = TERMINAL_JS_PATH.read_text() +_INDEX_HTML: str = INDEX_HTML_PATH.read_text() + + +# ── index.html script tag migration (ghostty-web) ──────────────────── + + +def test_index_html_loads_ghostty_web_js() -> None: + """index.html must load ghostty-web.js.""" + assert "ghostty-web.js" in _INDEX_HTML, ( + "index.html must include a