nano-it

0.0.5 • Public • Published

Nano It

Tiny test library.

Usage

$ node it.js file-to-test.js second-file-to-test.js ....

Example test

it('1 + 1 = 2', () => {
  assert(1 + 1 === 2)
})

it('1 + 1 = 2 with mock', () => {
  mock('./add', () => 2)
  const add = require('./add')

  assert(add(1, 1) === 2)
})

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i nano-it

      Weekly Downloads

      1

      Version

      0.0.5

      License

      MIT

      Unpacked Size

      3.86 kB

      Total Files

      6

      Last publish

      Collaborators

      • dominicginger