test-utils.js

0.0.5 • Public • Published

test-utils

convenient methods for testing

install

npm install --save-dev test-utils.js

Usage

  const expect  = require('expect.js');
  const testUtil = require('test-utils.js'); 
  //tests only 0 and 5th test from the list of tests. rest of them should be ignored
  [0,1,2,3,4,5].forEach(function (test, index) {
    testUtil.run([0,5], index)(index + ": should be even number", function () {
      expect(test%2 === 0).to.be.ok();
    })
  })

Readme

Keywords

Package Sidebar

Install

npm i test-utils.js

Weekly Downloads

3

Version

0.0.5

License

MIT

Unpacked Size

2.42 kB

Total Files

4

Last publish

Collaborators

  • bharathrao
  • bsadeh
  • nirmalgupta
  • tshanky