Top "Jasmine-jquery" questions

An extension to Jasmine JavaScript library for easier testing jQuery functions.

Jasmine.js v2.0.0 - TypeError: Cannot read property 'stopPropagation' of undefined

I am new to Jasmine2 JS framework. I am using Jasmine.js framework to create test suites for my application …

javascript jquery backbone.js jasmine jasmine-jquery
Jasmine - Checking addClass on click

This is a Rails app. I'm using the Jasmine gem with Jasmine-Jquery. Here's my JS in asset pipeline: $selector = function() { $(…

javascript jasmine jasmine-jquery
How to use SpyOnEvent to spy on events with jquery-jasmine

I'm using the jQuery-Jasmine extension to spy on events but i can't get the correct syntax. // Get a button var $…

javascript jquery unit-testing jasmine jasmine-jquery
How to test a function call inside a click event with Jasmine

I'm fairly new with Jasmine and I'm trying to test a very simple scenario Code under test $(function () { $("#add_distribution_…

javascript jasmine jasmine-jquery
Jasmine jQuery: Check if element is visible

Hello I got a question regarding unit testing with Jasmine (plugin: jQuery) How could I test if the object is …

javascript jquery jasmine jasmine-jquery
jasmine jquery test to check if correct arguments have been passed to a method

I am new to javascript testing. I am using jasmine and need to test if correct arguments have been passed …

javascript jquery jasmine jasmine-jquery
Jasmine Spy Undefined

When I run my jasmine specs I get the following error: Error: Expected a spy, but got undefined. My coffeescript …

javascript coffeescript jasmine jasmine-jquery
How to use fixtures in Jasmine.js version 2.0.0?

Fixtures are working fine for my test suites in jasmine.js version 1.3.1. After upgrading Jasmine.js version to 2.0.0, fixtures are …

javascript jquery backbone.js jasmine jasmine-jquery
Testing focus() on an element in an AngularJS directive template

Given the following directive directive('myDirective', function() { return { restrict: 'A', scope: {}, replace: false, template: '<input ng-focus="onFocus()" type="…

javascript jquery angularjs jasmine jasmine-jquery