Amazebot / bbot

An adaptable conversation engine for building bespoke bots.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix test for log error handling

timkinnane opened this issue · comments

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