jasmine / jasmine.github.io

Source for Jasmine's documentation
https://jasmine.github.io
MIT License
567 stars 418 forks source link

Tutorial: Spying on properties #131

Closed elliot-nelson closed 4 years ago

elliot-nelson commented 4 years ago

SUMMARY

Document how to spy on properties, how to create a spy object with properties, and how to correctly change spies on properties after creating them.

DETAILS

Fairly simple, but I've seen the question multiple times -- hopefully this will make it more discoverable.

Related to https://github.com/jasmine/jasmine/pull/1719, https://github.com/jasmine/jasmine/issues/1442.