securedrop
securedrop copied to clipboard
Add unit tests for JavaScript
Description
While we don't have much JavaScript, we should still have tests for it, e.g. using QUnit: https://qunitjs.com/
User Stories
As a SecureDrop contributor, I want to know I'm not breaking the little JavaScript that exists when I modify it.
Future versions of SecureDrop may use JS more extensively (for example for client-side encryption), so this issue is still relevant.