tock / ai.tock.bot.test.mock / mockBus

mockBus

fun mockBus(bus: BotBus = mockk(), test: (BotBus) -> Any?): Unit (source)

Execute test with a bus mocked with default BotBus configuration.