From 3998beef779986d76ead672e8be815ab6f92a27b Mon Sep 17 00:00:00 2001 From: Ryan Huber Date: Wed, 18 Apr 2018 15:04:00 -0400 Subject: [PATCH] add test() example to comments (#70) --- other/whats-a-test/3.todo.js | 7 +++++++ 1 file changed, 7 insertions(+) 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!