• M
    Avoid any in TestInstantiationService.stub · a6e6fb20
    Matt Bierner 提交于
    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.
    a6e6fb20
gettingStarted.test.ts 1.2 KB