gobind-db-tests
v0.0.2
Published
Tests for database adapters
Downloads
2
Readme
Gobind db tests
Tests for gobind database adapters
Usage
- Step 1 - Install required dependencies
npm install -g mocha # test runner
npm install --save-dev gobind-db-tests # test assertions
- Step 2 - Create test file
// test.js
// change to actual location of file
var db = require('./index.js');
require('gobind-db-tests')('name', db);
- Step 3 - Add to package.json
{
...
"scripts": {
"test": "mocha --bail --harmony --reporter spec test.js"
}
...
}
- Step 4 - Run tests
npm test