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

Karma And Coffescript And Code Coverage

I think something may be wrong with the Karma CoffeeScript code coverage preprocessor. Or I'm n… Read more Karma And Coffescript And Code Coverage

Typeerror: 'undefined' Is Not A Function (evaluating 'mockbackend.expectpost(

I am trying to unit test an angularjs controller with Karma, and jasmine. Here is my test suite: de… Read more Typeerror: 'undefined' Is Not A Function (evaluating 'mockbackend.expectpost(

Babel / Karma / Chai Gives Typeerror: 'caller', 'callee', And 'arguments' Properties May Not Be Accessed On Strict Mode Functions

I having trouble figuring out why this test is not passing. var expect = require('chai').ex… Read more Babel / Karma / Chai Gives Typeerror: 'caller', 'callee', And 'arguments' Properties May Not Be Accessed On Strict Mode Functions

Promises With $q And Angular In Karma, Mocha & Chai

So i tried to get the promises to work in my angular app tests, can anyone figure out what im doing… Read more Promises With $q And Angular In Karma, Mocha & Chai

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

Loading External File From Karma/jasmine Test

I'm trying to accomplish a Jasmine test (using Karma and IntelliJ 13) to validate JSON files. I… Read more Loading External File From Karma/jasmine Test

Karma-sinon-chai Fails After Moving To Windows

I have unit tests running under Karma, and am using the sinon-chai library. Everything was working … Read more Karma-sinon-chai Fails After Moving To Windows

Getting Karma Code Coverage For Pre-transpilation Source Code

I'm using Karma to run tests, webpack to bundle files, and babel for es6 -> es5 transpilatio… Read more Getting Karma Code Coverage For Pre-transpilation Source Code

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?

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

Karma-ng-html2js-preprocessor Not Creating Modules

Attempting to use the karma-ng-html2js-preprocessor. Karma has been finding all of my other stuff (… Read more Karma-ng-html2js-preprocessor Not Creating Modules

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`?