Ben Cherry 7/8/2010

Writing Testable JavaScript

Read Original

The article discusses best practices for writing testable JavaScript, based on the author's experience at Twitter. It explains why the singleton pattern can cause state pollution between tests and demonstrates a better approach using constructable objects. The examples use QUnit but are applicable to any JavaScript testing framework.

Writing Testable JavaScript

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser