Elliot Nelson
4731b4ee4d
Keep all Promise implementation details internal
2019-05-08 09:13:41 -04:00
Felix Rilling
63f900287c
Fixed typo "receieved" to "received", Adapted test.
2019-03-10 10:59:56 +01:00
Steve Gravrock
4934e420b2
Allow adding custom spy strategies
...
[#37288941 ]
2018-01-10 08:59:19 -08:00
Steve Gravrock
16e07a0e99
Add the ability to specify the strategy to use for a spy based on which parameters are passed
...
[Finishes #92260826 ]
2018-01-03 08:49:34 -08:00
Gregg Van Hove
21655a82c9
Use prototype for spy strategy for better memory management
...
- Also convert `identity` to a property from a method
2017-11-30 17:30:20 -08:00
Tony Brix
686d8157e5
remove eval to create spy wrapper
2017-04-26 13:34:32 -07:00
Gregg Van Hove
9cb2f06aa6
Add a first pass at jsdoc.
...
[##130415655] #596
2017-03-21 11:36:41 -07:00
Damien Cassou
4cfdd06700
Add toHaveBeenCalledBefore matcher
...
This matcher makes sure the 'actual' spy is called before the
'expected' spy.
This code has been written in cooperation with Benjamin Van Ryseghem.
2017-02-20 09:52:14 +01:00
Gregg Van Hove
0d1a9a72d9
Fix spy arity stuff to work in IE8
2016-09-28 11:49:07 -07:00
Andrzej Kopeć
90dea9ab38
Now spies preserve original function arity
2016-02-25 21:43:18 +01:00
Davis W. Frank & Sheel Choksi
3847557bbc
Squashed spy refactor and new spy syntax
...
Jasmine spies now have a 'and' property which allows the user to
change the spy's execution strategy-- such as '.and.callReturn(4)'
and a 'calls' property which allows inspection of the calls a spy
has received.
* This is a breaking change *
There is a CallTracker that keeps track of all calls and arguments
and a SpyStrategy which determines what the spy should do when it
is called.
2013-07-22 14:29:52 -07:00
Davis W. Frank
9e31201f1a
Breaking out Spies into their own source file
2013-06-03 08:22:45 -07:00