thunk-test
Advanced tools
Comparing version 0.2.3 to 0.2.5
{ | ||
"name": "thunk-test", | ||
"version": "0.2.3", | ||
"version": "0.2.5", | ||
"description": "Modular testing for JavaScript", | ||
@@ -5,0 +5,0 @@ "author": "Richard Tong", |
# ThunkTest | ||
Modular testing for JavaScript. Set up tests as thunks, then execute them with a call. | ||
Modular testing for JavaScript. Set up tests as thunks, then execute them with a call. Run with `node`. | ||
@@ -8,4 +8,4 @@ ```javascript | ||
ThunkTest('adds two values', add) | ||
.case(5, 5, 10) // assert.strictEqual(add(5, 5), 10) | ||
.case('abcde', 'fg', result => { // supply your own callback | ||
.case(5, 5, 10) | ||
.case('abcde', 'fg', result => { | ||
assert.strictEqual(result, 'abcdefg') | ||
@@ -12,0 +12,0 @@ })() |
15172