Top "Jasmine" questions

Jasmine is a behavior-driven development (BDD) framework for testing JavaScript code.

Jasmine 2.0 async done() and angular-mocks inject() in same test it()

My usual test case looks like it("should send get request", inject(function(someServices) { //some test })); And Jasmine 2.0 async test …

javascript angularjs unit-testing mocking jasmine
Angular 2 Jasmine Can't bind to 'routerLink' since it isn't a known property of 'a'

I'm creating a unit test for my Navbar Component and I'm getting an error: Can't bind to 'routerLink' since it …

unit-testing angular jasmine angular-routing
Jasmine calls.length and callCount are undefined

I'm trying to test my chrome extension with Jasmine but I'm having trouble getting calls.length and callCount to behave …

javascript google-chrome-extension jasmine bdd jasmine2.0
Why is this sinon spy not being called when I run this test?

I have a Backbone Model: class DateTimeSelector extends Backbone.Model initialize: -> @bind 'change:date', @updateDatetime @bind 'change:time', @…

javascript backbone.js jasmine coffeescript backbone-events
Angular2 Testing No provider for LocationStrategy

I am trying to write a test for a Component, but I always get the error: "Error: Error in ./ExpenseOverviewComponent …

angular jasmine webpack karma-runner angular2-testing
How to spyOn a static class method with Jasmine

I have a class with a static method that I want to test in Jasmine. I understand that static methods …

javascript class static jasmine spy
Testing the handling of a custom event in Jasmine

I am wanting to ensure that a object's method gets called as an event handler, when a custom jQuery event …

javascript unit-testing jasmine twitter-flight
Jasmine expect logic (expect A OR B)

I need to set the test to succeed if one of the two expectations is met: expect(mySpy.mostRecentCall.args[0]).…

javascript unit-testing logic jasmine
Karma + Jasmine: Cannot read property 'getComponentFromError'

I am following this tutorial: https://angular.io/guide/testing#component-test-scenarios for karma+jasmine unit testing. Here my code: import { …

angular unit-testing jasmine karma-runner zone.js