Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Add instance mocks #37
I'd like to be able to mock out an object created via
I might also imagine being able to access the original definition of the "class" (
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
Your latter example can be done with jasmine.createSpyObj - you can create an Object with a bunch of spies as functional properties. We do this a lot in our testing.
Your "instance" interface looks interesting. Why not test-drive the concept and see if you can get some traction?