Amazebot / bbot

An adaptable conversation engine for building bespoke bots.
MIT License
55 stars 2 forks source link

Fix test for log error handling #79

Open timkinnane opened 6 years ago

timkinnane commented 6 years ago

Winston logger should automatically handle uncaught exceptions and log an error message, but it's tricky to test uncaught exceptions in mocha because it will throw the test. No solution in mind.

see https://github.com/Amazebot/bbot/blob/master/src/lib/logger.spec.ts#L34