Unit suite · 16 cases
Contracts at the class boundary.
Exports, initial state, fluent identity, argument validation, and the public list snapshot.
Complete Unit inventory
16- default and named exports reference the same class
- a fresh instance exposes an empty list snapshot
- instances own independent event registries
- on returns the current instance
- once returns the current instance
- off returns the current instance when the type is absent
- emit returns the current instance when the type is absent
- reset returns the current instance
- on requires a string event type
- on requires a function handler
- on requires a boolean once flag
- once delegates type validation to on
- once delegates handler validation to on
- off requires a string event type
- off validates a handler when the event exists
- emit requires a string event type