Kevin Wilson
  • Blog
  • About
  • Feed

TypeScript

Using Jasmine Spies to Create Mocks and Simplify the Scope of Your Tests

February 25, 2015 Kevin Wilson 1 Comment

Jasmine spies are a great and easy way to create mock objects for testing. By using a Spy object, you remove the need to create your own function and class stubs just to satisfy test dependencies. Some TypeScript Code Let’s say you have this service for saving a person: iperson-service.ts /// <reference path=”resources/idata-context.ts” /> /// […]

Read More

Writing Cleaner AngularJS with TypeScript and ControllerAs

January 7, 2015 Kevin Wilson 9 Comments

Our team made the move to TypeScript and Angular at the tail end of last year. I’d had a look at Angular a year or so ago but struggled to get my head around the excessive usage of $scope and the nesting of $parent items that needed to be traversed. Since then (with version 1.2.0), […]

Read More

Recent Posts

  • Split your cmder window into multiple panels
  • Fix Error 0x80072EE7 on Windows 10
  • UX Snippets: Avoid mismatching instructions and actions
  • The horrible UX of the National Lottery website messaging system
  • Death of a Team
  • Authorize Your Azure AD Users With SignalR
  • Get Your Web API Playing Nicely With SignalR on OWIN with Autofac
  • An Email To Revolut Customer Services
  • Switch Out Your Raygun API Key Depending on Web API Cloud Configuration
  • Get Bluetooth Working on Windows 10 on Mac Book Pro
Digital Ocean. Simple Cloud Servers, Built for Developers.

Archives

Tags

.NET ADAL Amazon Android AngularJS Ant ASP.NET Azure C# Closure Compiler Cmder Code Continuous Integration Debugging Drivers Facebook Git Google Chrome Grunt How To Jasmine JavaScript Linux MacBook middleman Musings Node.js Octopus Deploy Photo PowerShell Rants Recipe Reviews Self Promotion SignalR Site Updates TeamCity Tech Toronto TypeScript Unit Testing UX WebAPI Web Development Windows 10
Kevin Wilson All rights reserved. Theme by Colorlib Powered by WordPress