PhantomJS is an headless WebKit.
Mocha is the most common testing framework in the Node.js world.
Mocha and PhantomJS can be used together with continuous integration servers such as Bambo, Travis and Jenkins.
The mocha-phantomjs project provides a file and extensions to drive PhantomJS while testing your HTML pages with Mocha from the console.
check out the sites :