go-joe v0.2.0 Release Notes
Release Date: 2019-03-10 // about 5 years ago-
- ➕ Add a lot more unit tests
- ➕ Add
TestBot.Start()
andTestBot.Stop()
to ease synchronously starting and stopping bot in unit tests - ➕ Add
TestBot.EmitSync(…)
to emit events synchronously in unit tests - ✂ Remove obsolete context argument from
NewTest(…)
function - Errors from passing invalid expressions to
Bot.Respond(…)
are now returned inBot.Run()
- Events are now processed in the exact same order in which they are emitted
- All pending events are now processed before the brain event loop returns
- Replace context argument from
Brain.HandleEvents()
with newBrain.Shutdown()
function Adapter
interface was simplified again to directly use theBrain
- ✂ Remove unnecessary
t
argument fromTestBot.EmitSync(…)
function - ✂ Deleted
Brain.Close()
because it was not actually meant to be used to close the brain and is thus confusing