Sinon.JS v1.8.0 Release Notes

Release Date: 2014-02-02 // about 10 years ago
    • βž• Add clearImmediate mocking support to the timers API (Tim Perry)
    • Mirror custom Date properties when faking time
    • πŸ‘Œ Improved Weinre support
    • ⚑️ Update call properties even if exceptions are thrown (Tim Perry)
    • ⚑️ Update call properties even if exceptions are thrown (Tim Perry)
    • Reverse matching order for fake server (Gordon L. Hempton)
    • πŸ›  Fix restoring globals on another frame fails on Firefox (Burak Yiğit Kaya)
    • πŸ– Handle stubbing falsey properties (Tim Perry)
    • Set returnValues correctly when the spied function is called as a constructor (Tim Perry)
    • When creating a sandbox, do not overwrite existing properties when inject properties into an object (Sergio Cinos)
    • βž• Added withCredentials property to fake xhr (Geries)
    • Refine behavior withArgs error message (Tim Fischbach)
    • Auto-respond to successive requests made with a single XHR object (Jan SuchΓ½)
    • βž• Add the ability for mock to accept sinon.match matchers as expected arguments (Zcicala)
    • βž• Adding support for XMLHttpRequest.upload to FakeXMLHttpRequest (Benjamin Coe)
    • πŸ‘ Allow onCall to be combined with returns* and throwsException in stub behavior sequences (Tim Fischbach)
    • πŸ›  Fixed deepEqual to detect properties on array objects
    • πŸ›  Fixed problem with chained timers with delay=0 (Ian Lewis)
    • πŸ‘‰ Use formatio in place of buster-format (Devin Weaver)