yeoman-assert
yeoman-assert copied to clipboard
Cannot read property 'xxx' of undefined
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:
assert.objectContent(
{},
{
array: [
{
key: "1"
},
{
key: "2"
}
]
}
);
Btw. it would be cool to display real object diff.
Cheers, Andrej