All Versions
145
Latest Version
Avg Release Cycle
16 days
Latest Release
83 days ago

Changelog History
Page 15

  • v0.7.0

    September 19, 2010
    • 0️⃣ sinon.useFakeTimers now fakes the Date constructor by default
    • ✅ sinon.testCase now fakes XHR and timers by default
    • ✅ sinon.config controls the behavior of sinon.testCase
    • 🛠 Fixed bug in clock.tick - now fires timers in correct order
    • ➕ Added the ability to tick a clock string for longer ticks. Passing a number causes the clock to tick the specified amount of milliseconds, passing a string like "12:32" ticks 12 minutes and 32 seconds.
    • calledBefore and calledAfter for individual calls
    • 🆕 New assertions sinon.assert.notCalled sinon.assert.calledOnce sinon.assert.calledTwice sinon.assert.calledThrice
    • ✅ sinon.test now throws if passed anything other than a function
    • ✅ sinon.testCase now throws if passed anything other than an object
    • sinon.{spy,stub}(obj, method) now throws if the property is not an existing function - helps avoid perpetuating typo bugs
    • Vastly improved error messages from assertions
    • Spies/stubs/expectations can have their names resolved in many cases
    • ✂ Removed feature where sinon.testCase allowed for nested test cases (does not belong in Sinon.JS)
    • Organizational change: src/ becomes lib/ Helps npm compatibility
    • Thanks to Cory Flanigan for help on npm compatibility
  • v0.6.2

    August 12, 2010
    • 🛠 Fixed another bug in sinon.fakeServerWithClock where consecutive respond() calls did not trigger timeouts.
  • v0.6.1

    August 12, 2010
    • 🛠 Fixed a bug in sinon.fakeServerWithClock where the clock was ticked before the server had responded to all requests, resulting in objects not having been responded to by the time the timeout ran.
  • v0.6.0

    August 10, 2010
    • FakeXMLHttpRequest
    • sinon.useFakeXMLHttpRequest
    • sinon.fakeServer
    • sinon.fakeServerWithClock
    • 👌 Improved fake timers implementation, made them work properly in IE 6-8
    • 👌 Improved sinon.sandbox
      • Added useFakeServer
      • Added inject method
    • 👌 Improved sinon.test method
      • Made configuration aware
      • Now uses sinon.sandbox in place of sinon.collection
    • 🔄 Changed default configuration for sinon.test, breaking compatibility with 0.5.0 - can be changed through sinon.config
  • v0.5.0

    June 09, 2010
    • 🎉 Initial release
    • 🤡 Spies, stubs, mocks
    • Assertions
    • ✅ collections, test, testCase
    • Fake timers (half-baked)