mirror of
https://github.com/smittix/intercept.git
synced 2026-04-25 23:29:59 -07:00
feat(maps): add MapUtils shared map initialisation utility
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
19
tests/test_map_utils.py
Normal file
19
tests/test_map_utils.py
Normal file
@@ -0,0 +1,19 @@
|
||||
# tests/test_map_utils.py
|
||||
|
||||
|
||||
def test_map_utils_js_is_served(client):
|
||||
"""map-utils.js is accessible as a static file."""
|
||||
resp = client.get("/static/js/map-utils.js")
|
||||
assert resp.status_code == 200
|
||||
data = resp.data.decode()
|
||||
assert "MapUtils" in data
|
||||
assert "MapUtils.init" in data
|
||||
assert "addTacticalOverlays" in data
|
||||
|
||||
|
||||
def test_map_utils_css_is_served(client):
|
||||
"""map-utils.css is accessible as a static file."""
|
||||
resp = client.get("/static/css/core/map-utils.css")
|
||||
assert resp.status_code == 200
|
||||
data = resp.data.decode()
|
||||
assert "map-hud-panel" in data
|
||||
Reference in New Issue
Block a user