Now that we’ve been though the details of how to set up a simple assertion test with QUnit and PhantomJs in a Maven Continuous Integration build in part 1, let’s take a closer look at all the assertions that are available in a test.
The techniques here are dependent on some libraries, but this should already be included if you are using the phantomjs-qunit-runner maven plugin. Credit to this article to for the DOM setup and teardown helper functions.
Alright, onward to the code examples!
Here is the code to test it! Pretty simple really.. comments inline