jasmine
QUnit vs Jasmine? [closed]
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing th[详细]
2023-03-27 15:58 分类:问答How to stub require() / expect calls to the "root" function of a module?
Consider the following jasmine spec: describe(\"something.act()\", function() { it(\"calls some function of my module\", function() {[详细]
2023-03-27 07:22 分类:问答How to use Jasmine to spy on methods within a jquery plugin
I have a plugin defined as such (function($){ $.fn.robodisco = function(callerSettings) { var findVideos = function(params){ ... }[详细]
2023-03-26 16:44 分类:问答What are the advantages of testing your Javascript with Jasmine - a BDD approach? [closed]
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely solicit debate, a[详细]
2023-03-25 22:18 分类:问答Unit testing the success function of an ajax call in a Jquery plugin using Jasmine framework
In unit testing of the jQuery AJAX calls with Jasmine I usually can get by with spying on the success function before passing the options to the $.ajax() function (there are many examples on the net a[详细]
2023-03-25 05:14 分类:问答Can you test JavaScript / JQuery code embedded in HTML page with Jasmine?
How can I use Jasmine or other tool to test the JavaScript / JQuery that is embedded inside a web page like in the example below?[详细]
2023-03-23 03:19 分类:问答Simulating user input for TDD JavaScript
I\'m finding it increasingly difficult to simulate actual user events using jQuery or native element trigger functions. For example, if you have a text input and you don\'t want the user to be able to[详细]
2023-03-22 07:18 分类:问答nested expect() function with Jasmine BDD does not evaluate
I have the following Jasmine context and assertion: it \"should return a javascript file\", -> # We make a request to /x.js[详细]
2023-03-20 21:04 分类:问答spy on jquery ui widget in jasmine
I have a jquery ui widget defined like this: $.widget(\"ui.someWidget\", options: {},开发者_如何学编程 _create = function() { doSomething();[详细]
2023-03-19 13:54 分类:问答Jasmine: define separate source file sets for Rails?
Separate parts of my site have separate sets of Javascript files, which -thrown all together- interfere with each other. In order to test everything with Jasmine, 开发者_如何转开发it seems I need some[详细]
2023-03-18 20:43 分类:问答