gobind-db-tests

0.0.2 • Public • Published

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

/gobind-db-tests/

    Package Sidebar

    Install

    npm i gobind-db-tests

    Weekly Downloads

    1

    Version

    0.0.2

    License

    ISC

    Last publish

    Collaborators

    • jksdua