Written by Simon Bailey
After working with Backbone, Meteor, AngularJS and Ember (however, I have not dived deep into Ember yet), I feel that AngularJS is prepared the best for Test Driven Development (TDD). It truly makes it a cinch removing all excuses to not use tests in your application!
I have had the pleasure of focusing on testing within an AngularJS client application recently and lost a small amount of time testing a directive. The issue revolved around the template being located as an external html file as opposed to being included within the directive itself. There were a couple of head scratching errors that @amscotti and I had whilst seeking a solution but here’s a suggested approach.
Read on →