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 ran a test that involved testing an object with a null prototype using expect(obj).to.have.ownProperty('x'). The test failed because it had no access to Object.prototype.hasOwnProperty. Can the ownProperty method be tweaked to use call/apply instead? Asi in Object.prototype.hasOwnProperty.call(obj).
Hmm... We should also prolly add a test that demonstrates current failure for the expect/should interfaces. Not seeing any equivalent functionality in the assert interface, though.
I recently ran a test that involved testing an object with a null prototype using
expect(obj).to.have.ownProperty('x')
. The test failed because it had no access toObject.prototype.hasOwnProperty
. Can theownProperty
method be tweaked to usecall
/apply
instead? Asi inObject.prototype.hasOwnProperty.call(obj)
.Specifically, I was thinking about line 1226
The text was updated successfully, but these errors were encountered: