Better Tests with State Machines
Every developer knows unit tests exist to prevent defects from reaching production. The essential ingredients to ensure proper test coverage are shown here via several code examples. This is a means to ensure coverage of all state changes.
Tags: javascript, statemachine, unittesting, integrationtesting