folktest/README.md

32 lines
563 B
Markdown

# folktest
a simple test kit for myself and anyone else who doesn't feel like using jest or mocha or carrot or whatever the fuck its called
# Usage
```js
import { it, assert } from 'folktest'
const test = it('should pass', () => {
assert(true)
})
test()
/* {
* success: true,
* description: 'should pass',
* error: undefined
* }
*/
const err = it('should error', () => {
assert(false)
})
err()
/* {
* success: false,
* description: 'should error',
* error: AssertionError('assertion error: false is not true')
* }
*/
```