Top "Karma-jasmine" questions

Karma-Jasmine is an adapter for the Jasmine testing framework,which is shipped with Karma by default.

Angular2 Quickstart Tutorial Breaking Karma Tests - "Can't bind to 'ngModel' since it isn't a known property of 'input'."

I am following the official Angular "Hero" Quickstart Tutorial whilst trying to TDD it. https://angular.io/docs/ts/latest/…

angular karma-runner karma-jasmine ngmodel
KarmaJS, Jasmine, RequireJS, etc: How to Use Require for Testing Modules

Running Karma + Jasmine Tests with RequireJS -- Getting off the ground Help! . . . _ _ _ . . . SOS! Currently, I have an exercise project up …

unit-testing requirejs jasmine karma-runner karma-jasmine
When does Jasmine .toHaveBeenCalledWith match the parameters?

I have the following angular service and its jasmine test. The test calls f1() and spies on f2(). The function …

angular typescript jasmine karma-jasmine angular-test
Angular testing - observable pipe is not a function

I want to write a unit test for a photo-upload-mehtod. But I get the Failed: this.task.snapshotChanges(...).pipe is …

angular jasmine rxjs karma-jasmine angular-test
Cannot read property 'params' of undefined in angular 2

We have used route param in our code. But while performing unit testing in jasmine karma we are getting following …

unit-testing angular karma-jasmine karma-coverage routeparams
ngx-translate: Translate string in Unit Testing

I can get the value if it's a static test, but whenever I'm trying to get the translated value (using …

angular unit-testing typescript karma-jasmine ngx-translate
Angular 4 Error: No provider for ChildrenOutletContexts in Karma-Jasmine Test

My Angular application is working properly, but I am keep getting Karma error when I run ng test command. I …

windows angular typescript karma-jasmine angular-cli
Testing observable object angular 2 karma

I'm working on my unit test cases for Angular 2 with Karma, I got stuck with one of a function where …

unit-testing angular karma-jasmine angular2-services karma-coverage
jasmine angular 4 unit test router.url

I am unit testing a function in angular 4 project using jasmine which a switch statement like mentioned below: switch(this.…

angular unit-testing karma-jasmine router
Wait for ngOnInit to finish in Jasmine Angular2

I'm unit testing a component and this is what I have: describe('Component: nav', () => { beforeEach(() => addProviders([ provide(UserService, {…

angular jasmine karma-jasmine