ECMAScript/JavaScript Unit Testing
Using QUnit |
Prof. David Bernstein
|
Computer Science Department |
bernstdh@jmu.edu |
equal(actual,expected [, message])
deepEqual(actual,expected [, message])
throws()
==
or ===
approxEquals() function that returns
a boolean
and use the ok()
assertion
toFixed()
method
module()
to group testsmodule()
module()
module()
:
module()
function has an optional parameter
that can be used to pass a setup
and
teardown
function