Closed apadmarao closed 10 years ago
Hello,
sourceObject.containEql(targetObject)
throws a TypeError when targetObject has keys not in the sourceObject. We expect an AssertionError to be thrown instead.
{}.should.containEql({foo: 'foo'}) // throws TypeError: Cannot read property 'should' of undefined
I am happy to submit a PR for this, if we agree on the expected behavior.
Yes, looks like a bug, it should throw AssertionError.
Fixed in 3.1.3
Hello,
throws a TypeError when targetObject has keys not in the sourceObject. We expect an AssertionError to be thrown instead.
I am happy to submit a PR for this, if we agree on the expected behavior.