Remove extractTweetIDFromURL (wasn't being called anywhere)
Thanks to above, the polyfill string.prototype.matchAll could be removed
Removed node-calibre as discussed in a previous meetup (Not needed anymore)
Fix the tweetOlderThanSevenDays function. Uses the battle-tested library date-fns's differenceInDays, which returns only the truncated differences between the dates (i.e, only 5, 7, 8. Not 5.78, 3.568997979 etc). Shoutout to @tr0mbl3y for pointing this out.
Add script in package.json for getting code coverage
Description
string.prototype.matchAll
could be removednode-calibre
as discussed in a previous meetup (Not needed anymore)tweetOlderThanSevenDays
function. Uses the battle-tested librarydate-fns
'sdifferenceInDays
, which returns only the truncated differences between the dates (i.e, only 5, 7, 8. Not 5.78, 3.568997979 etc). Shoutout to @tr0mbl3y for pointing this out.