title: Unit tests vs E2E test with mocked out API in SPA
body: <p>In terms of efficiency and code coverege, why would you write jasmine unit tests when you can write protractor e2e tests and mock out http requests, 3rd party API's etc'?</p>
  
  <ol>
  <li>You can make the same specific assertions such as in unit test because most of the asserted objects will have UI representation.</li>
  <li>You cover much larger flows (If I have a controller that runs a directive, that runs another directive...) .</li>
  <li>It saves time. E2E tests are much faster to write.</li>
  </ol>
  
  <p>So i see much greater value to E2E tests with mocked http requests, yet most of the developer insist on writing unit tests. </p>
  
  <p>What am I missing here?</p>