UNPKG

tooty

Version:

Simple agnostic message router for node

12 lines (10 loc) 336 B
describe("tooty.Router", () => { describe("#dispatch", () => { // handles happy path (simple match) // runs happy path callbacks // handles failures, does not run callback // runs failure callbacks if any // handles fallback route if any // handles cyclical referencing if default route not present }); });