Etwas-Builders / Twitter-Source-Bot

Ever wanted to know the source of a tweet? Just @whosaidthis_bot and I'll tell you where it came from
https://twittersourcebot.tech/
15 stars 1 forks source link

Jest Unabled to Close Promise on Autohook.spec.js #85

Open CryogenicPlanet opened 4 years ago

CryogenicPlanet commented 4 years ago

Check Commit https://github.com/Mozilla-Open-Lab-Etwas/Twitter-Source-Bot/commit/c27884e5a22103e85b4a6e29496f19c3aeb40204 Manually Closing Https Server https://github.com/Mozilla-Open-Lab-Etwas/Twitter-Source-Bot/blob/3cb58f43af60e4f7da662a3a5b3bb5d22f9e1a78/tests/autohook.spec.js#L58 https://github.com/Mozilla-Open-Lab-Etwas/Twitter-Source-Bot/blob/3cb58f43af60e4f7da662a3a5b3bb5d22f9e1a78/tests/autohook.spec.js#L61

@lunaroyster I don't want to test with nock like them, I want to test our credentials on the main API, but I am not able to close all promises on this

Official Autohook Test https://github.com/twitterdev/autohook/blob/master/test/autohook-success.js