diff --git a/other/whats-a-test/3.todo.js b/other/whats-a-test/3.todo.js index c14627c9..29a65ef5 100644 --- a/other/whats-a-test/3.todo.js +++ b/other/whats-a-test/3.todo.js @@ -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!