Writing Javascript Tests
Javascript tests are the correct test type to write in any situation
where you are not specifically interested in the rendering of a page,
and where human interaction isn't required. These tests are written
using a framework called testharness.js. Various pieces of
documentation are avaliable: