Squash Odysseus development history

This commit is contained in:
pewdiepie-archdaemon
2026-09-11 06:04:19 +00:00
parent e5c99a5eee
commit 6ee6502010
2050 changed files with 538359 additions and 57745 deletions
+13
View File
@@ -0,0 +1,13 @@
from pathlib import Path
SOURCE = (
Path(__file__).resolve().parent.parent / "static" / "js" / "group.js"
).read_text(encoding="utf-8")
def test_group_session_sidebar_cache_uses_safe_json_loader():
assert "import Storage from './storage.js';" in SOURCE
assert "Storage.getJSON('odysseus-group-sessions', [])" in SOURCE
assert "Array.isArray(storedGroupSessions)" in SOURCE
assert "JSON.parse(localStorage.getItem('odysseus-group-sessions')" not in SOURCE