Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@leverj/test-utils

1.5.1-alpha.14 • Public • Published

test-utils

convenient methods for testing

install

npm install --save-dev @leverj/test-utils

Usage

  const expect  = require('expect.js');
  const testUtil = require('@leverj/test-utils'); 
  //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();
    })
  })

Keywords

none

Install

npm i @leverj/test-utils

DownloadsWeekly Downloads

212

Version

1.5.1-alpha.14

License

MIT

Unpacked Size

1.21 kB

Total Files

4

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar