testdouble.js (AKA td.js) v2.0.0 Release Notes

Release Date: 2017-03-13 // about 7 years ago
  • Full Changelog

    Closed issues:

    • ✅ How can I write a test for such situation? #199
    • ✅ contains not working against IIFE objects #192
    • ✅ td.verify not returning true when true #191
    • ✅ Typing definition for td.object doesn't support constructors with arguments #184
    • ✅ Replacing methods on window.location #183
    • ✅ stub also verified warning when using ignoreExtraArgs #181
    • ✅ [BREAKING] Return constructor for td.replace\(\) #166
    • 👍 Allow matchers inside objects #160
    • 👌 Support invoking callbacks with arbitrary timing #106

    🔀 Merged pull requests:

    • ✅ Async callbacks #205 (searls)
    • ✅ Create test double functions and copy/fake their properties #204 (searls)
    • 👌 Support deep matchers #203 (searls)
    • ✅ introduce td.constructor() as top-level API sibling to td.object() & td.function() #201 (searls)
    • 👍 Allow Babel compilation #197 (searls)
    • 👌 Improves warning when verifying a stub #196 (samjonester)
    • ✅ Yarn #195 (searls)
    • ✅ Creates Better Verification Message #194 (samjonester)
    • ✅ Replace constructors with constructors #193 (searls)