https://github.com/ciromirkin/jstesting
Javascript testing.
https://github.com/ciromirkin/jstesting
javascript testing
Last synced: 9 months ago
JSON representation
Javascript testing.
- Host: GitHub
- URL: https://github.com/ciromirkin/jstesting
- Owner: CiroMirkin
- Created: 2022-12-03T16:31:45.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-27T14:03:34.000Z (about 3 years ago)
- Last Synced: 2025-10-06T12:59:13.015Z (9 months ago)
- Topics: javascript, testing
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```