testdouble.js (AKA td.js) v3.8.2 Release Notes

Release Date: 2018-10-08 // over 5 years ago
  • โœ… Full Changelog

    Implemented enhancements:

    • ๐Ÿ‘Œ Verifying stubs that return promises without warnings? #245

    Closed issues:

    • โœ… How do I verify only 1 of 2 stubbed functions was called? #384
    • โœ… Fake timers / mock Date #383
    • โœ… Getting a not a constructor error when trying to stub an external class dependency #382
    • โœ… how to handle async callbacks #380
    • โœ… mocking non-direct dependency #379
    • โœ… How to replace momentjs ? #378
    • โœ… Arguments of mocked functions are saved by reference. #375
    • โœ… testdouble incompatible with coverage tools? #374
    • โœ… td.replaced module still returning stub after a td.reset() #373
    • โœ… Awaiting a testdouble function always resolves #371
    • โœ… Stub one function and use originals for rest #368
    • โœ… td.replace is breaking type definitions from sanctuary.js #327

    ๐Ÿ”€ Merged pull requests: