thunk-test
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "thunk-test", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Modular testing for JavaScript", | ||
@@ -5,0 +5,0 @@ "author": "Richard Tong", |
@@ -66,4 +66,5 @@ # ThunkTest | ||
```javascript | ||
Test('square', number => number ** 2) | ||
.before(function () { | ||
Test('square', function square(number) { | ||
return number ** 2 | ||
}).before(function () { | ||
this.hello = 'world' | ||
@@ -78,2 +79,7 @@ }) | ||
})() | ||
// -- square | ||
// ✓ square(3) |> function (squared) { | ||
// assert(squared == 9) | ||
// assert(this.hello == 'world') | ||
// } | ||
``` | ||
@@ -80,0 +86,0 @@ |
26941
116