Unit Testing Controller State Transitions in AngularJS with Jasmine

State transitions in AngularJS are surprisingly hard to unit test. Assume the following scenario: A user opens their app, and the app checks to see if they’ve paired to a Bluetooth device. If they have, the app sends them to their home screen. If they haven’t, the app sends them to the pairing screen. Let’s […]