[tracker] add tests for fjord_utils.js functions

RESOLVED FIXED in 2014Q4

Status

RESOLVED FIXED
4 years ago
2 years ago

People

(Reporter: willkg, Unassigned)

Tracking

unspecified
2014Q4
Dependency tree / graph

Details

This tracker groups a bunch of bugs for adding tests for fjord_utils.js functions. This file is in:

    fjord/base/static/js/fjord_utils.js

JavaScript tests for that JavaScript file exist in:

    fjord/base/static/tests/test_fjord_utils.js

There's one test there that you can be inspired from and one test that is commented out because it's busted.

The test harness is qunit:

    http://qunitjs.com/

Running the qunit tests is different than running the rest of the unit tests (or the smoke tests). First, it's not documented anywhere (I should fix that). Second, you run the Fjord server (e.g. "./manage.py runserver ...") and then go to: /static/tests/index.html

For example, you can run them in production here:

    https://input.mozilla.org/static/tests/index.html
Depends on: 1081413
All of these bugs have been completed, so I'm going to mark this FIXED.
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2014Q4
Product: Input → Input Graveyard
You need to log in before you can comment on or make changes to this bug.