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

https://github.com/ciromirkin/jstesting

Javascript testing.
https://github.com/ciromirkin/jstesting

javascript testing

Last synced: 9 months ago
JSON representation

Javascript testing.

Awesome Lists containing this project

README

          

# jstesting

jstesting is a module for testing functions in Javascript.

```javascript
import test from '../jstesting.js'

const sum = (a, b) => a+b
```

```javascript
test('', {
functionToTesting: sum(2, 2), functionOutput: 4
})

test('adds 10 + 5 to equal 15', {
functionToTesting: sum(10, 5), functionOutput: 15
})
```

Result of test:

```
GOOD work
> no description
> The funtion returned: 4

AWFUL
> adds 10 + 5 to equal 15
> The function did'nt return: 15
```