Files

13 lines
625 B
Python
Raw Permalink Normal View History

from pathlib import Path
root = Path(__file__).resolve().parents[1]
listener = (root / "lib/Listener/LoadFilesScript.php").read_text()
expected_call = "Util::addInitScript(Application::APP_ID, Application::APP_ID . '-main');"
2026-09-19 09:45:20 +00:00
comments_dependency = "Util::addInitScript('comments', 'comments-comments-app');"
assert expected_call in listener, "listener must load the exact app-prefixed Vite asset"
2026-09-19 09:45:20 +00:00
assert comments_dependency in listener, "listener must load the native Comments view before the custom app"
assert (root / "js/korean_comments_action-main.mjs").is_file(), "built module is missing"
print("php asset link ok")