I am fairly certain that the issue is that the jquery bindings set to run on $(document).ready do not have the fixture html available to them.  So when my events occur that are intended to make a change to the DOM via a jquery function, nothing happe...
I have this kind of a mocha test:  describe 'sabah', ?     beforeEach ?         @sabahStrategy = _.filter(@strats, { name: 'sabah2' })[0]             .strat      it 'article list should be populated', (done) ?         @timeout...
What are the good resource to learn BDD & TDD (ruby , C#, javascript).  What are the good framework using now?...
I'm new to TDD and working with Mocha and Chai. I have created a test that passes when a value is increased, but when that increase is put within a setInterval, it fails. The objective of this code is to have something move across the screen.  fu...
Is there a way in Mocha to test if a function calls a specific method or external function?  I am using Mocha with Chai, but am open to any other assertion libraries.    Ok, so testing whether a methid is being called is pretty easy using sinon. I...
I allow users to share photos with other individuals.  When the user is viewing a photo and its description, they can click on "share" and a new page loads.  On this page the fill in an email address (and optional comments - not tested here)...
In Google Apps Script, I'm unit-testing an app that I'm working on, using QUnit, using test-driven-development.  The code under test  I am, right now, working on fully testing, and then developing, the following function:  /**  *   *  Creates...
This seems impossible (and it might be), but I'm trying to get into more TDD and I keep hitting a wall with closures.  Say I have the following:  function createSomething(init) {     function privateMethod(param) {         return init[param];  //...
I am trying to wrap my head around testing Flux and React applications using Jest.  I started using Scotch.io tutorial as my starting point and will be creating a full test suite to gain knowledge in how to structure my first real react and flux app....
I'm trying to test a prototypal method that returns insights about a dataset I am loading via AJAX.   $.getJSON('../data/bryce.json').done(function(data) {      insights = new Insights(data);      describe("People Method", functio...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.