Closed EQuimper closed 6 years ago
As you can see also with the the mock file here https://github.com/EQuimper/100DaysOfCode-twitter-bot/blob/master/__mocks__/twit.js
We can now test this function and make sure at least we send the args we need. Like I did here https://github.com/EQuimper/100DaysOfCode-twitter-bot/blob/master/src/api/promote/promote.test.js
Add eslint and fix all issue from it
Make sure we create only one instance of the twit bot, easier to test after.
Make promote as a simpler function and add test for it