{
  "name": "waht",
  "version": "1.0.2",
  "description": "Command line program to fetch pieces of API documentation.",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "bin": {
    "waht": "bin/waht.js"
  },
  "preferGlobal": "true",
  "repository": {
    "type": "git",
    "url": "https://github.com/davidmason/waht.git"
  },
  "author": "https://github.com/davidmason",
  "license": "MIT",
  "bugs": {
    "url": "https://github.com/davidmason/waht/issues"
  },
  "homepage": "https://github.com/davidmason/waht",
  "engines": {
    "node": ">=0.10.28",
    "npm": ">=1.4.9"
  },
  "dependencies": {
    "cheerio": ">=0.17.0",
    "request": "^2.36.0"
  }
}

{
  "name": "waht",
  "version": "1.0.2",
  "description": "Command line program to fetch pieces of API documentation.",
  "main": "index.js",
  "scripts": {
    "test": "mocha lib/**/test.js"
  },
  "bin": {
    "waht": "bin/waht.js"
  },
  "preferGlobal": "true",
  "repository": {
    "type": "git",
    "url": "https://github.com/davidmason/waht.git"
  },
  "author": "https://github.com/davidmason",
  "license": "MIT",
  "bugs": {
    "url": "https://github.com/davidmason/waht/issues"
  },
  "homepage": "https://github.com/davidmason/waht",
  "engines": {
    "node": ">=0.10.28",
    "npm": ">=1.4.9"
  },
  "dependencies": {
    "cheerio": ">=0.17.0",
    "request": "^2.36.0"
  },
  "devDependencies": {
    "mocha": "^1.20.1"
  }
}

Add mocha and set up testing in config
Add mocha and set up testing in config

Allows `npm test` to run tests for all modules in lib.
