In our last post, we created a ViewModel which models the basic functionality we would like on the page. As a reminder, we have a Knockout “observable array” of items suitable for binding; each item is a JavaScript object containing a title and description in addition to a value called complete which indicates if this … Continue reading
Tag Archives: TDD
Test Driven Development with KnockoutJS, VisualStudio, and Karma
I’m giving a presentation on KnockoutJS and TDD at DevTeach in Toronto on Wednesday. I’ll be doing a live code demo, which is always exciting (at least for the presenter). I thought I’d write a quick article recording the steps I go through as part of the demo. Legacy Code Legacy Code, according to my … Continue reading
Test Driven Development with KnockoutJS, VisualStudio, and Karma: Live Demo
I’m giving a presentation on KnockoutJS, Karma-Runner, and TDD at DevTeach in Toronto on Wednesday. I’ll be doing a live code demo, which is always exciting (at least for the presenter). Here’s a screen grab of me practicing the live code demo. Topics covered: Creating project in VisualStudio, adding knockout and jasmine via nuget Setting … Continue reading
BreezeJS: TDD With Mocha and PhantomJS
I’m really interested in BreezeJS right now. It seems like a really promising new open source (MIT License) framework for helping you get data into your JavaScript applications, including single page applications (which are coming to be known by the acronym SPA). Breeze has lots of features. One to whet your appetite is the query … Continue reading
KnockoutJS and Testing
KnockoutJS is a JavaScript framework for making it easy to quickly create complex data based pages in browsers as old as IE6. It does this by though the use of a data-bind property for HTML elements like so: <input data-bind=”value: firstName” /> What the above data-bind will do is replace the value property of the … Continue reading