0.0.5 • Published 6 years ago

test-utils.js v0.0.5

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

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();
    })
  })
0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago