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
I recently moved some code that had Object.assign(Object.create(null), { prop1: 1 }) to just properties on the class, where the class holds this.props1 = 1. Then the assertions started failing.
If I do a Object.setPrototypeOf(objInstantiatedFromClass, null) then tests pass again. The real test has nested properties. I just wanted to see if I can somehow get away by telling sinon to ignore prototype methods.
The text was updated successfully, but these errors were encountered:
I recently moved some code that had
Object.assign(Object.create(null), { prop1: 1 })
to just properties on the class, where the class holdsthis.props1 = 1
. Then the assertions started failing.If I do a
Object.setPrototypeOf(objInstantiatedFromClass, null)
then tests pass again. The real test has nested properties. I just wanted to see if I can somehow get away by telling sinon to ignore prototype methods.The text was updated successfully, but these errors were encountered: