A node module for validating site analytics


This is node application for executing and validating analytic events.

Haunted is available from npm.

$ npm install haunted

To use Haunted, just instantiate a new Haunted object, passing it a definition, suite describer, and suite tester, and call run().

Haunted = require('haunted');
haunted = new Haunted(definition, describer, tester);

Two examples are included, a simple one using console.log and an example using the Mocha test framework. To use the Mocha example, you must install the mocha npm module.

npm install -g mocha
npm install should

To run the Mocha example, just use this command: mocha --reporter spec --ui bdd -r should example/mocha.js