Skip to content

Commit

Permalink
add test() example to comments (kentcdodds#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
rphuber authored and Kent C. Dodds committed Apr 18, 2018
1 parent edfaa9c commit 3998bee
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions other/whats-a-test/3.todo.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ Then wrap each of your tests in a `test` function.
This also means that we can run all the tests even
if one of them fails!
Example of test function
test(title, () => {
// arrange
// act
// assert
}
Then run this code with `node 3.todo`
> Make sure you're in the right directory!
Expand Down

0 comments on commit 3998bee

Please sign in to comment.