All Versions
Latest Version
Avg Release Cycle
27 days
Latest Release

Changelog History
Page 18

  • v0.7.2 Changes

    October 25, 2010
    • โž• Add sinon.sandbox.create back in
    • ๐Ÿ›  Fix bug where clock.tick would fire timeouts in intervals when setInterval was also called
  • v0.7.1 Changes

    October 16, 2010
    • The fake server will now match paths against full URLs, meaning that server.respondWith("/", "OK"); will match requests for "http://currentHost/".
    • ๐Ÿ‘Œ Improved toString method for spies and stubs which leads to more precise error messages from sinon.assert.*
  • v0.7.0 Changes

    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 Changes

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

    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 Changes

    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 Changes

    June 09, 2010
    • ๐ŸŽ‰ Initial release
    • ๐Ÿคก Spies, stubs, mocks
    • Assertions
    • โœ… collections, test, testCase
    • Fake timers (half-baked)