Avoid any in TestInstantiationService.stub
Use of any in stub was causing a few issues: - Lots of implicit anys being used - Methods / properties being stubbed with wrong types - Non-existant methods/properties being stubbed The fix is to require that the passed in stub is either a `Function` (the ctor case) or a `partial` of the type being stubbed.
Showing
想要评论请 注册 或 登录