TDD AngularJS Controller method with a wrapped asynch Call

Posted by: Sahil Malik - blah.winsmarts.com, on 10 Jul 2015 | View original | Bookmarked: 0 time(s)

SharePoint Training: more information AngularJS is awesome for many reasons, one of which is, it lends itself so well to TDD. Everything is testable, controllers, modules, directives. I like to have Karma running on the side as I write my code, so if I break something, I know immediately. It can also be integrated with Jenkins etc. if you prefer.There is an upfront investment sure! But damn, once youve built this scaffolding, youll wonder how you ever wrote code without all this scaffolding before. Anyway, sometimes things are not very straightforward though. One example is, when you have a controller like this -- ...

Category: Sharepoint | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 379 | Hits: 7

Similar Posts

  • Take Two: A jQuery WCF/ASMX ServiceProxy Client more
  • AJAX Logging with Exponential Backoff more
  • Escalating an AudioVideoCall to a conference in UCMA 2.0 more
  • Dynamic Delegates with Expression Trees more
  • Adding Method-Missing support to VB.NET using CTru and Typemock Open-AOP more
  • Handling Formats Based On Url Extension more
  • Simplicity is key to successful unit testing - Part 2 more
  • Over Specification in Tests more
  • Helper Class for Avoiding Memory Leaks with SPSite and SPWeb Objects more
  • Extending Depender with your own custom dependency rules more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD