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

Writing Karma + Mocha Tests With Both Dependency Injection And `done`?

What's the most elegant way to write Karma unit tests in mocha that both have dependency inject… Read more Writing Karma + Mocha Tests With Both Dependency Injection And `done`?

How To Include Php File To Run Test In Karma/jasmine?

The JS file I want to test is useless without PHP app on top of which it executes, because backend … Read more How To Include Php File To Run Test In Karma/jasmine?

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?

Karma Coverage And Babel+browserify Preprocessing

I'm using Karma to test my ES6 code. When I add karma-coverage to the mix, I need to add all th… Read more Karma Coverage And Babel+browserify Preprocessing

Karma + Jspm + Typescript - Not Found '.ts.js'

Mainly just trying to get Karma+JSPM to play nice on loading the .ts files but having absolutely no… Read more Karma + Jspm + Typescript - Not Found '.ts.js'

Testing Jsonp $resource Angularjs

How do I test a request being sent and data is being received with a JSONP service? angular.module(… Read more Testing Jsonp $resource Angularjs

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

Testing Keydown Events In Jasmine With Specific Keycode

I am writing tests for an AngularJS directive which fires events of a when certain keys are presse… Read more Testing Keydown Events In Jasmine With Specific Keycode