Skip to content

Instantly share code, notes, and snippets.

Sql Server Constraints

Test setup is hard, it's tricky, and it feels like a hack. That's how you know you're doing it right. (maybe?)

This Post Aims to Cover

  • Why you aid testability by wrapping $resource in an api service.
  • Test setup and mocking in jasmine to handle api services.
  • How to test and resolve promises in your controller specs.

All of the code is available on [plunkr][1]