Breaking Out Of A Promise Chain In AngularJS

Run Test With No Branch.

Run Test With Branch Logic.