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
Google's JS style guide prohibits getters with side effects, which causes difficulty when using the "expect" style of assertions. Allowing a () at the end of such chains would mitigate this issue and allow people writing in Google style to use the nicer "expect" style, rather than only being able to use the old-fashioned "assert" style.
The text was updated successfully, but these errors were encountered:
@shicks There has been a lot of discussion on this issue, and one attempt to support using the getters as methods, which had to be reverted due to unexpected incompatibilities and breaking changes. Here are some of the relevant threads: #302, #371, #726 (comment).
The last time we discussed this issue, the opinion was that the dirty-chai plugin is an acceptable solution for this problem.
Sounds good, we'll look into recommending that plugin, and hopefully someday chai core will finally move off of property assertions. Thanks for all the background!
Google's JS style guide prohibits getters with side effects, which causes difficulty when using the "expect" style of assertions. Allowing a
()
at the end of such chains would mitigate this issue and allow people writing in Google style to use the nicer "expect" style, rather than only being able to use the old-fashioned "assert" style.The text was updated successfully, but these errors were encountered: