Top "Jasmine" questions

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

Spying on a constructor using Jasmine

I am using Jasmine to test if certain objects are created and methods are called on them. I have a …

javascript jasmine spy
Exporting classes with node.js

I have the following test code that is being ran by jasmine-node in a file called bob_test.spec.js …

javascript node.js jasmine jasmine-node
How to run Jasmine tests on Node.js from command line

How do I run Jasmine tests on Node.js from command line? I have installed jasmine-node via npm and written …

node.js jasmine jasmine-node
Redirect calls to console.log() to standard output in Jasmine tests

I'm using Jasmine via the jasmine-maven-plugin, and I would like to see console.log() messages in the Maven build output. …

javascript jasmine jasmine-maven-plugin
Angular2 unit test with @Input()

I've got a component that uses the @Input() annotation on an instance variable and I'm trying to write my unit …

angular typescript unit-testing jasmine angular-test
Unit testing using Jasmine and TypeScript

I am trying to get a unit test written in Typescript using Jasmine to compile. With the following in my …

javascript unit-testing typescript jasmine chutzpah
Using object types with Jasmine's toHaveBeenCalledWith method

I've just started using Jasmine so please forgive the newbie question but is it possible to test for object types …

javascript tdd bdd jasmine
How to change return value of jasmine spy?

I'm using Jasmine to create a spy like so: beforeEach(inject(function ($injector) { $rootScope = $injector.get('$rootScope'); $state = $injector.…

angularjs jasmine spy
What is the difference between createspy and createspyobj

I have used in my code like. return $provide.decorator('aservice', function($delegate) { $delegate.addFn = jasmine.createSpy().andReturn(true); return $…

angularjs jasmine karma-jasmine
How do I verify jQuery AJAX events with Jasmine?

I am trying to use Jasmine to write some BDD specs for basic jQuery AJAX requests. I am currently using …

javascript jquery ajax jasmine bdd