Skip to content Skip to sidebar Skip to footer
Showing posts with the label Jasmine

Testing If A Jasmine Test Fails

I'm trying to write a plugin for Jasmine that allows you to return a promise from a spec and wi… Read more Testing If A Jasmine Test Fails

How To Deal With Thrown Errors In Async Code With Jasmine?

The following test causes Jasmine (2.3.4, run in browser via Karma) to crash and not run any subseq… Read more How To Deal With Thrown Errors In Async Code With Jasmine?

Testing Code Within Addeventhandler

I have the following - window.addEventListener( 'orientationchange', () => { // Code… Read more Testing Code Within Addeventhandler

Why Is My Jasmine Spy Not Called?

I am currently writing a unit test for Geolocation API. My Angular component looks as follow: expor… Read more Why Is My Jasmine Spy Not Called?

Angular 1.5 Test Component With Jasmine

I try test my component with Jasmine and Angular-mock, but I don't know how this do. This is m… Read more Angular 1.5 Test Component With Jasmine

Unit Testing Jquery Getjson Function Errors With The Fail Method, Using Jasmine And Karma

I've written a unit test for a function that calls the jQuery getJSON method. The only thing th… Read more Unit Testing Jquery Getjson Function Errors With The Fail Method, Using Jasmine And Karma