Closed jstejada closed 9 years ago
Your code looks fine to me, will investigate.
Have you tried setting the property individually?
module.__set__("privateModule.func", jasmine.createSpy())
I have added a test for this in 18f3bae1d9df17acfd8bd77dd958da30fc94653e
Thanks for checking, setting the property individually does work, so I resorted to that.
Unfortunately it is not possible to set multiple, nested vars without seriously complicating the __set__
method so that usage has been removed from the readme, see 91e7c9982f6af9be67ca7bdb671629ec553b1ea6
ok no problem. thanks!
Hi!
I'm trying to set a nested property passing a map as a parameter to
__set__
:But it errors with:
TypeError: Cannot read property 'func' of undefined
Any thoughts on this? Thanks!