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

Test An Asynchronous Function Not Within A Service

If I have a directive that takes a function from the scope, and that function is asynchronous how c… Read more Test An Asynchronous Function Not Within A Service

Unit Testing Two Service Which Are In Different Module With Jasmine

I have written some service in angular. Check this PLUNKER. Injecting CommonService, $rootRouter, … Read more Unit Testing Two Service Which Are In Different Module With Jasmine

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

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

How To Unit Test An Angular 1.5 Component Template?

So, here's my test: describe('My Test', function(){ var $componentController, $compi… Read more How To Unit Test An Angular 1.5 Component Template?

Integrating Javascripts Unit Tests Code Coverage In Msbuild

I am using Jasmine and Karma for writing unit tests and code coverage. I have created the tasks usi… Read more Integrating Javascripts Unit Tests Code Coverage In Msbuild

Typeerror: Undefined Is Not A Constructor

I'm very new to Angular and I'm trying to figure much of this out still. I'm writing s… Read more Typeerror: Undefined Is Not A Constructor

Imports In Vanilla/pure JS Testing With Protractor And Relative Paths

Until now, I was testing my non-Angular website (I only have JS, no node, not even ES6) using Jasmi… Read more Imports In Vanilla/pure JS Testing With Protractor And Relative Paths