CodeUtopia
Navigation
  • Home
  • Blog
  • About
  • Contact
  • Search
  • Home
  • Blog
  • About
  • Contact
  • Search

Post Archive by Month

Below you'll find a list of all posts from May, 2016

Sinon.js quick tip: How to stub/mock complex objects, such as DOM objects

Tags: JavaScriptSinonTestingUnit Testing

Several of my readers have emailed me, asking about how to deal with more complex stubbing situations when using Sinon.js. In this article, we’ll look at how to stub objects which are deeply nested, and when functions have more complex return values and they interact with other objects. We’ll use DOM objects as a practical example, as they’re used quite …

Read More

Recent Posts

  • I spent my vacation programming
  • Quick JavaScript testing tip: How to structure your tests?
  • JavaScript Testing Tool Showdown: Sinon.js vs testdouble.js
  • 230 Curated Resources and Tools for Building Apps with React.js
  • Simplify your JavaScript code with normalizer functions

Archives

Copyright © 2006 - 2016 Jani Hartikainen