0.0.5 • Published 5 years ago
nano-it v0.0.5
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)
})