JavaScript How to use Loopback Angular SDK services in tests? loopback services angular

This might be a question more for Jasmine or Angular, but I’m wondering how to use the Loopback-generated Angular services in my tests. I don’t need to test the services themselves, but I need to test controllers that rely on those services, but they’re not using a typical promise set up. I usually test promise-based services like this (in Jasmine):