All Versions
177
Latest Version
Avg Release Cycle
27 days
Latest Release
-
Changelog History
Page 18
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)