You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
getters/setters are ES5 and yes, you have an option - use Proxy from ES6. But Sinon can help you here only by providing a spy that you can put in the getter to assert it later. Because spys, stubs and mocks are only for functions. That is because unit testing don't imply that you should ever spy on properties
Is it possible to spy on properties without ES6 getters/setters?
e.g.:
The text was updated successfully, but these errors were encountered: