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

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

Don't Work $compile In Jasmine Karma Angular

(function () { 'use strict'; angular .module('app.widgets') … Read more Don't Work $compile In Jasmine Karma Angular

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

Angular Material 2 - Trigger Change Event In Md-checkbox In A Unit Test

I am having problems triggering a 'change' event for a md-checkbox in an Angular Unit Test,… Read more Angular Material 2 - Trigger Change Event In Md-checkbox In A Unit Test

Angular Directive Isolate Scope Unit Test Failed

I am trying to unit test an Angular Component with Karma Jasmine for the very first time. My index.… Read more Angular Directive Isolate Scope Unit Test Failed

Angularjs Unit Test With $http Request Never Fires .then() Callbacks

I'm trying to get unit tests running with mocked responses in separate json files. The tests we… Read more Angularjs Unit Test With $http Request Never Fires .then() Callbacks

Tracing Errors Using Karma + Babel + Webpack With Bundles

Using karma + babel + webpack to run ES6 unit tests. I use a webpack bundle to locate and transpile… Read more Tracing Errors Using Karma + Babel + Webpack With Bundles

Expect Not Tothrow Function With Arguments - Jasmine

I have function that gets 3 arguments. I want to check that this function not throwing an error. I … Read more Expect Not Tothrow Function With Arguments - Jasmine

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?

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

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