Tag: Jasmine

Jasmine test on AngularJS promise-returning function keeps on timing out

Being the test-driven developer that you are, you are writing a Jasmine test for your AngularJS factory function, which returns a promise generated by our beloved $q. You know how to test an asynchronous response with Jasmine. You confidently run the test and… bam, you get an error message “Timeout – Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL”

Introducing Jasmine to Java developers

Step right in, Java developers! If you’re anything like me and like to test your server-side AND client-side code, then allow me to introduce you to Jasmine, the Behavior-Driven JavaScript testing framework! With concrete examples to chew on!