Gregg Van Hove
b4cbe9850f
add prettier and eslint
2019-05-21 18:23:48 -07:00
Gregg Van Hove
e04d3d8a62
Fix bad merge for spyOnProperty error message
2019-05-17 17:07:47 -07:00
Gregg Van Hove
06814769c6
Merge branch 'enelson/spyregerrors' of https://github.com/elliot-nelson/jasmine into elliot-nelson-enelson/spyregerrors
...
- Merges #1706 from @elliot-nelson
2019-05-17 16:44:26 -07:00
Elliot Nelson
befb8995e6
spyOnProperty jasmine-style error messages with usage note
2019-05-17 12:02:44 -04:00
Elliot Nelson
1e13039478
spyOnProperty respects the allowRespy flag
2019-05-17 11:43:22 -04:00
Elliot Nelson
ee15309a8f
Extend spyOnAllFunctions to include prototype and parent methods
2019-05-11 18:20:13 -04:00
Andrew Eisenberg
f62eb3b1a8
Add spyOnAllFunctions function
...
This function will spy on all writable and configurable functionss of
an object that is passed in. It can be used like this:
spyOnAllFunctions(obj);
This commit addresses https://github.com/jasmine/jasmine/issues/1421
2018-07-20 07:58:17 -07:00
Gregg Van Hove
038ab87252
Merge branch 'custom-spy-strategy' into 3.0-features
2018-01-22 12:12:59 -08:00
Steve Gravrock
cf2f922e30
Merge branch 'master' into 3.0-features
2018-01-10 15:28:55 -08:00
Steve Gravrock
6f119c4e5a
Moved createSpy to env so it can be stateful
2018-01-09 10:16:02 -08:00
Steve Gravrock
b6cc34d9e9
Correctly remove spies of window.onerror on IE
2017-12-18 16:34:37 -08:00
Steve Gravrock
419470e9df
Removed support for IE <10
...
[#150527985 ]
2017-11-08 08:30:22 -08:00
Gregg Van Hove
9fbd0ba551
Nicer error messages for spyOn when null is provided
...
Fixes #1258
2017-02-15 15:55:27 -08:00
Sukharev Maxim
56191cfb2e
Implement spies for get/set functions on accessor properties
2016-09-12 18:22:58 -05:00
Sean Parmelee
8676bbf11a
fallback on assignment when a spy cannot be deleted
2016-09-01 13:39:25 -05:00
slackersoft
954a6a0091
Merge branch 'feat/improveErrorMessages' of https://github.com/dhoko/jasmine into dhoko-feat/improveErrorMessages
...
- Merges #1026 from @dhoko
- Fixes #1025
2016-03-18 10:59:31 -07:00
dhoko
14067d0785
Improve errors with the domaine and how to use the API
2016-02-29 10:33:45 +01:00
Gregg Van Hove
b66ffc1277
Merge branch 'spy-inherited-methods' of https://github.com/benchristel/jasmine into benchristel-spy-inherited-methods
...
- Merges #1036
- Fixes #737
2016-02-22 14:11:00 -08:00
Gregg Van Hove
5bdd7e8fbf
Merge branch 'issue-931-respy' of https://github.com/guy-mograbi-at-gigaspaces/jasmine into guy-mograbi-at-gigaspaces-issue-931-respy
...
- Merges #953
- Fixes #931
2016-02-18 11:40:01 -08:00
Ben Christel
d6f1f8dec5
Correctly teardown spies on inherited methods
...
- If the spied method is not an own property of the object being spied
upon, the method is deleted from the object on teardown instead of
being set to the original implementation.
- #737
2016-02-01 17:45:47 -08:00
DJ Burrowes
65241565c5
Reverse order that spies are cleared up.
...
Fixes #1010
2016-01-03 19:14:57 -08:00
Gregg Van Hove
8e317d4026
Less verbose for the linter
2015-10-26 17:51:42 -07:00
Gregg Van Hove
ea4c44904d
IE 8 doesn't support defineProperty on non-DOM nodes, skip that kindof thing
2015-10-26 17:41:30 -07:00
Gregg Van Hove
a85c3a4da8
Check for descriptor
2015-10-26 17:03:45 -07:00
guy-mograbi-at-gigaspaces
e7dbc75fc2
feat(spy): add option to respy
...
will not throw error if spyOn called on a spy
fixes #931
2015-10-24 08:37:33 +03:00
Stephan Bijzitter
a81466d9e7
Abort spying when the target cannot be spied on
2015-10-21 12:44:52 +02:00
slackersoft
b4b3ac25a1
spyOn explicitly checks to see that a method name to spy on was passed.
...
[finish #27689237 ]
2014-12-16 13:21:48 -08:00
Christopher Amavisca and Greg Cobb
b200952195
Only clear resources if suite is not disabled
...
[#66789174 ]
2014-03-05 14:00:57 -08:00
Christopher Amavisca, Greg Cobb and Sheel Choksi
752a36d3ff
Manage spys/matchers/custom equalities for beforeAll
...
- Refactor expectations to take list of matchers
- Add spyRegistry to manage runnables' spies
- Add clone util
[#66789174 ]
2014-03-05 10:28:37 -08:00