@0x/utils: Add docstring for raw constructor parameter in RevertError.

`@0x/utils`: Use `...is.instanceof()` pattern in `RevertError` tests.
This commit is contained in:
Lawrence Forman
2019-09-04 05:15:12 -04:00
parent 20ba23fe5f
commit b07fc95c81
3 changed files with 8 additions and 1 deletions

View File

@@ -146,7 +146,7 @@ describe('RevertError', () => {
it('should decode an unknown selector as a `RawRevertError`', () => {
const _encoded = encoded.substr(0, 2) + '00' + encoded.substr(4);
const decoded = RevertError.decode(_encoded, true);
expect(decoded instanceof RawRevertError).to.be.true();
expect(decoded).is.instanceof(RawRevertError);
});
it('should fail to decode a malformed ABI encoded revert error', () => {
const _encoded = encoded.substr(0, encoded.length - 1);