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

Is There A Way To Run Particular Protractor Test Depending On The Result Of The Other Test?

This kind of question has been asked before but most of this question has pretty complicated backgr… Read more Is There A Way To Run Particular Protractor Test Depending On The Result Of The Other Test?

Jasmine 2.0: Refactoring Out 1.3's Runs() And Waitsfor()

The recently released Jasmine 2.0 removes the waits functions and the runs() from the Async Jasmine… Read more Jasmine 2.0: Refactoring Out 1.3's Runs() And Waitsfor()

Return A Promise In Jasmine Directive Controller

In my unit test i need to return a promise so that my tests don't fail: describe('refugeeRe… Read more Return A Promise In Jasmine Directive Controller

Test Angular Resolve Method

I have Angular with ui-router, so toResolve variable will be resolved in my SomeController .state(&… Read more Test Angular Resolve Method

How To Write A Jasmine Test For Printer Function

I am trying to write a Jasmine test for the following print function: printContent( contentName: … Read more How To Write A Jasmine Test For Printer Function

Jasmine Testing .load() To Get Called Url

I have a function which loads a template and I want to check the correct URL is being called. As I … Read more Jasmine Testing .load() To Get Called Url

How To Mock $http.post Method That Has Been Called In Other Service Method In Jasmine?

I have and angular service that I want to test. In one of his methods I am using $http of angular s… Read more How To Mock $http.post Method That Has Been Called In Other Service Method In Jasmine?

Test For The Number Of Elements Using Jasmine In Angularjs

I am writing an end to end test using Jasmine for AngularJS. I am using Protractor to run the test… Read more Test For The Number Of Elements Using Jasmine In Angularjs