chrisirhc/blog-shapeTextExample — pull request #1 by DavidSouther (2013-10-20 01:07:23+00:00)
Title: Ex test

Hey, man! I love your tutorial on porting from jQuery to Angular - the code shows clear improvement on the three iterations to Angular, and really I think will help people port some messy jquery code to something more maintainable. I tweeted over the weekend asking about tests - I'm a firm believer in testing, and think it's critical. Also, this is a great app to showcase how moving to Angular will enable better testing!

To that end, I added some mid-level tests of the three steps you document in http://blog.thousandeyes.com/creating-extensible-widgets-part-1-jquery-to-angularjs/

The first two are pretty hacky, IMO, but by the third step the Angular directive starts to shine on its testability. I see where you're heading for the next blog post (step 6, my-triangle etc) and will be an awesome showcase for more testing.

Let me know your thoughts!