Closed come-maiz closed 6 years ago
We discussed that errors.constructor.name.should.equal("Array") is not the same as errors.should.be.instanceof(Array), because the later would succeed also for objects that inherit from Array. But that could actually be a good thing, we don't care if the class is an array or not, as long as it behaves as an array and includes the error we triggered.
Anyway, more discussion pending for when we solve the opened bug.
We should do something nicer for the tests for static errors. But, I don't want to do that today, so I reported https://github.com/OpenZeppelin/solium-plugin-zeppelin/issues/28