19.02.2016 - Recipes for Angular Unit Testing using Jasmine fail(string|Error) function — fail function will cause a spec to fail, taking a message or an Error .