auth0 / auth0-mailchimp-export

Allows Auth0 Customers to synchronize their Auth0 User base (those that have an email) with a MailChimp List
9 stars 14 forks source link

Unit tests for failures #5

Open sandrinodimattia opened 7 years ago

sandrinodimattia commented 7 years ago

Currently cron jobs run in the same container that are also serving rules and custom database connections. If an unhandled exception happens here, or the callback is not called for any reason, this might cause the container to be quarantined (impacting rules and database connections).

It would be good to have some unit tests that test the actual webtask and trigger some errors:

I noticed the harness folder (which are more like integration tests), but ideally here we would just have some unit tests with mocks.