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
Assertion.overwriteMethod('above', function (_super) {
return function assertAge (n) {
if (utils.flag(this, 'model.age')) {
[...]
// next, make sure we have an age
new Assertion(obj).to.have.deep.property('_attrs.age').a('number'); //<<<< ERROR
// now we compare
[...]
};
});
The assertion always fails because '_attrs.age' is not a valid property name.
If you do not want to remove it, simply replace it by
new Assertion(obj._attrs).to.have.property('age').a('number');
The text was updated successfully, but these errors were encountered:
The helpers page reads
The assertion always fails because '_attrs.age' is not a valid property name.
If you do not want to remove it, simply replace it by
The text was updated successfully, but these errors were encountered: