@leverj/test-utils

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

Readme

Keywords

none

Package Sidebar

Install

npm i @leverj/test-utils

Weekly Downloads

1

Version

4.3.1

License

MIT

Unpacked Size

1.2 kB

Total Files

4

Last publish

Collaborators

  • sachet.singh
  • adikeshavs
  • tshanky
  • bharathrao
  • nirmalgupta
  • darshanrathi
  • bsadeh