test(frontend): harden admin-cameras app.js loading and fix README omitted-field note #268
Labels
No labels
blocked
bug
enhancement
high-priority
low-priority
needs-info
needs-triage
ready-for-agent
ready-for-human
referenced
research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gabogg/hikcentral#268
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
P3 follow-up from PR #227 review pass 2.
Finding
tests/frontend/test_admin_cameras.test.js:20-37setswindow,localStorage,documentandt, thenrequires app.js before thetry. If loading app.js throws, those globals leak into later tests. Open thetrybefore the first global is set.typeof localStorageguard atapp.js:16-17never runs in tests, because the only test that loads app.js stubslocalStoragefirst. Drop the guard, or drop the stub and let the guard work.README.md:154saysprevious_month_daily_averageis "always present", but the field is omitted when it is null.Acceptance Criteria