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 look deeper, and your testing are not checking assertion error, so that kind of error you cannot find, this should be the better way of checking your behaviour:
it('fails if deep nested object does not contain a key',()=>{assert.throws(yoAssert.objectContent.bind(yoAssert,{},{a: {b: 'foo'}}),/.*AssertionError.*/);});
Hello,
objectContent, got Cannot read property 'xxx' of undefined on the line index.js:235:21
It is because, the tested object is not having the nested structure, thus it should not be compared.
Consider this example for instance:
Btw. it would be cool to display real object diff.
Cheers,
Andrej
The text was updated successfully, but these errors were encountered: