https://github.com/dolegi/nano-it
Nano nodejs test framework
https://github.com/dolegi/nano-it
it nano testing unit
Last synced: about 1 year ago
JSON representation
Nano nodejs test framework
- Host: GitHub
- URL: https://github.com/dolegi/nano-it
- Owner: dolegi
- Created: 2019-08-27T20:12:17.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-03-27T18:54:08.000Z (over 6 years ago)
- Last Synced: 2025-04-22T00:03:02.420Z (about 1 year ago)
- Topics: it, nano, testing, unit
- Language: JavaScript
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)
})
```