An open API service indexing awesome lists of open source software.

https://github.com/dolegi/nano-it

Nano nodejs test framework
https://github.com/dolegi/nano-it

it nano testing unit

Last synced: 5 months ago
JSON representation

Nano nodejs test framework

Awesome Lists containing this project

README

          

# Nano It
Tiny test library.

## Usage
```bash
$ node it.js file-to-test.js second-file-to-test.js ....
```

## Example test
```javascript
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)
})
```