The block that ran sanitizeProvider(...) was getting called twice: once before mock object construction and once after the construction of the provider. I found that it was interfering with the logic that populates the mocks into the mocks object. I've removed the offending code (the block preceding mock object construction), changed some of the logic around the looping of currProviderDeps, and fixed some lines that were using spaces instead of tabs for indenting.
The block that ran
sanitizeProvider(...)
was getting called twice: once before mock object construction and once after the construction of the provider. I found that it was interfering with the logic that populates the mocks into the mocks object. I've removed the offending code (the block preceding mock object construction), changed some of the logic around the looping ofcurrProviderDeps
, and fixed some lines that were using spaces instead of tabs for indenting.