You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't understand why you're installing getRequiredComponent() in getDependentComponent().
As far as I understand, you don't want to use the real RequiredComponent object, you want to use a mock instead.
You could pass the mock object as a parameter to getDependentComponent() and do a bindInstance() there of the mock. E.g. something like:
I'm trying to use Fruit with FakeIt in a unit test. Needless to say, I'm stuck.
I have quite a normal setup here for the code under test:
The compiler is happy and so I am. Now to the test:
How to get the mock object, returned by
mockRequired.get()
and install it in the factory?The text was updated successfully, but these errors were encountered: