First Test
This will be your very first test with ChitChatjs
! With your newly setup enviorment, it should be easy!
In your index.js
, put in the following code:
And in your tests/mytest.js
file:
tip
Always end a testcase with a return statment and a expection, this improves compile time and is also proper ChitChatjs etiquette to do so
Then when you run npm run test
, you should see the prompt:
There you go! That was your first test! If you didn't get any of the stuff that was done, don't worry! In the next page a lot of it will be explained!