create-spy-obj
Create jasmine spy objects magically
Usage
; // Use it with a class;myServiceSpyObj.myMethod.and.returnValue'bar'; // Use it with an interface;myInterfaceSpyObj.getName.and.returnValue'cool'; // Use it with a class without generics (can't do the same with interfaces);myServiceSpyObj.myMethod.and.returnValue'bar';
How it works
✨ Proxy magic ✨