I\'m using Jasmine to try and test code which has the following pattern:
(this is essentially a paginated database table load)
1. controller calls api on l