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

Tag Archive

Below you'll find a list of all posts that have been tagged as “testdouble”

JavaScript Testing Tool Showdown: Sinon.js vs testdouble.js

Tags: JavaScriptSinontestdoubleUnit Testing

When unit testing real-world code, there are many situations that make tests hard to write. How do you check if a function was called? How do you test an Ajax call? Or code using setTimeout? That’s when you use test doubles — replacement code that makes hard to test things easy to test. For many years, Sinon.js has been the …

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